I have a problem where if a user does not specifically press the logout button, and just closes his browser, he still appears to be logged in forever. I have to have updates to a database take place whenever the session ends to make the user logged out in the DB. Here is my Global.asa that is not working:<BR><BR>-----------------<BR><BR>&#060;OBJECT RUNAT=Server SCOPE=Session ID=MyInfo PROGID="MSWC.MyInfo"&#062;<BR><BR>&#060;SCRIPT LANGUAGE="VBScript" RUNAT=Server&#062;<BR>Sub Session_onStart<BR><BR> Application.Lock<BR><BR> Session.Timeout = 1<BR> strSessionID = Session.SessionID<BR><BR> Application.UnLock<BR><BR>End Sub<BR><BR>Sub Session_OnEnd<BR><BR> Application.Lock<BR><BR> strSessionID = Session.SessionID<BR><BR> Set objConn = Server.CreateObject("ADODB.Connection")<BR> FilePath = Server.MapPath("/database.mdb")<BR> objConn.Open "Driver={Microsoft Access Driver (*.mdb)}; DBQ=" & FilePath & ";"<BR><BR> strUpdate = "UPDATE Accounts SET Status = &#039Offline&#039, RandomNumber = 0 WHERE RandomNumber = " & strSessionID & ""<BR> objConn.Execute(strUpdate)<BR><BR> objConn.Close<BR> Set objConn = Nothing<BR><BR> Application.UnLock<BR><BR>End Sub<BR>&#060;/SCRIPT&#062;<BR><BR>&#060;/OBJECT&#062;<BR><BR><BR>-------------<BR><BR>Can anyone tell me why the databse is not making the proper updates to the database? Thanks in advance!<BR><BR>