My login page is designed to check a database table to see if that user name is already logged in. If that user name is already in use, it displays the proper error message. If not, it writes the user name to that table, creates a session variable so I can keep track of the users, and then proceeds to the member area.<BR><BR>My problem is that I cannot figure out how to erase this entry from the database when the session expires. I've tried doing it from within the Session_OnEnd() sub. I've tried writing a function (as suggested here on this message board) within the Global.asa file. I've tried placing the script into an external file and calling it from within the Global.asa file. None of these solutions work. I know that the script works because I've tested it by itself. I'm at a loss as to what to try to fix this. Any suggestions would be greatly appreciated.<BR><BR>Thanks.