"rob" <ro*@robrichard.com> wrote
I've got code in my session_onend event that clears out
database entries based on the sessionID that just
expired. The code works in the development environment,
but doesn't work in the production envrionment. Anyone
have any ideas of what to check? No errors are being
reported, just not firing... :-(
Rob,
What is different between the development and production envrionments?
Does the production envrionment have an IIS Application or Virtual Directory?
Does the production envrionment using inproc, out-of-process session?
Try calling Session.Abandon directly and see if the event fires. Otherwise,
the Session_End event will fire after the Session times out, or the application
is restarted.
Also, you typed "session_onend". Did you mean "Session_End"?
Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)
' Fires when the session ends
End Sub
--
Thanks,
Carl Prothman
Microsoft ASP.NET MVP
http://www.able-consulting.com