Kommer detta att fungera?
Sub Session_OnEnd
On error resume next
Set con = Server.CreateObject("ADODB.Connection")
con.Open Application("cmdatabas")
con.Execute("Update inloggningar Set inloggDatumSLut = #"& now() &"# Where inloggID = "& session("inloggID"))
con.close : Set con = Nothing
End Sub
När sessisionen avslutas kan man använda den sesion som är skapad till att göra en update?
You should not use the SessionID property to generate primary key values for a database application. This is because if the Web server is restarted, some SessionID values may be the same as those generated before the server was stopped.