I need an example of how to write to a database on session timeout. My session timeout is set to 30 minutes and I need to record an integer in my user database to indicate the user successfully logged out of the system. The system is designed to keep two people from being logged in at the same time using the same login and password. If the session times out then an action needs to occur to do the following:
strSQLQuery = "UPDATE Users SET Logout = 0 " _
& "WHERE UserID=" & Session("UserID") & ""
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open strSQLQuery, conn, 3, 3
I assume you need to use something like a global.asa file with
but I have no idea how to incorporate writing to a database from a global.asa file.
This is somewhat urgent!!
Thanks in advance for your help.