sub session_onEnd()
response.Write("name = " & Session("Name") & "<BR>")
response.Write("Session terminated<BR>")
end sub
will generate
Code:
John
page finished
name = John
session terminated
But after the page has finished the session variables will be unavailable.
Session_OnEnd is fired just before the session ends so the above will hold.
(of course this will fail if the session times out because the response.writes are not possible in that case)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.