I know my Session_OnEnd code is running when a user&#039s session times out (I&#039ve tested it).<BR><BR>I know my ADO code works because I have tested it in a stand-alone ASP (not in the global.asa file) . This code simply changes a field value in my database.<BR><BR>I put this same code into the Session_OnEnd area of the global.asa file, but the field value in the database never gets changed eventhough I know Session_OnEnd runs when a user&#039s session times out.<BR><BR>Are there any issues with running ADO code in the global.asa file?<BR><BR>Any help would be greatly appreciated (and may even stop some of my hair from falling out!)<BR><BR><BR><BR>Here&#039s my Session_OnEnd code:<BR>---------------------------------------------------------------<BR>Sub Session_OnEnd<BR><BR> Const adLockOptimistic = 3<BR> Const adOpenKeyset = 1<BR><BR> Set Conn = Server.CreateObject("ADODB.Connection")<BR> Conn.Open "MYDATABASE"<BR><BR> Set Rs = server.createobject("ADODB.Recordset")<BR> set Rs.ActiveConnection = Conn<BR> <BR> SQLStmt = "UPDATE [Users] SET [UAvailable] = False WHERE ([UID]=16);"<BR> <BR> Rs.Open SQLStmt, , adOpenKeyset, adLockOptimistic<BR> <BR> Conn.Close<BR> set Rs=nothing<BR> set Conn=nothing<BR><BR> End Sub<BR>---------------------------------------------------------------