determining the reason for a session_end event
Posted on 2004-08-25
Is it possible to determine whether a session ended because a timeout occurred?
That is, say I define a 30 minute timeout for the session.
Now, the session can end for several reasons, including closing the browser, logging out, timeout, turning off the server, etc.
However, the Microsoft.Win32.SessionEndReasons enumeration only defines "Logoff" and "SystemShutdown" and doesn't really apply to web applications. I can't seem to find any way to get the reason for a session timeout. Is there such a property?
The reason I need this, is that I need to redirect to different pages, based on the reason. Accessing a page without logging in should cause a different redirection than a timeout, for example.