Hi
I am trying to code the ASP.net page so that i can tell a user that the session is expired due to timeout as a popup or message.
What is the way to do this?
Hi
I am trying to code the ASP.net page so that i can tell a user that the session is expired due to timeout as a popup or message.
What is the way to do this?
Please visit this:
http://www.codeproject.com/KB/aspnet...n_Timeout.aspx
and
http://blogs.msdn.com/nikhiln/archiv...lications.aspx
I think this helps you!
"HttpSessionState class's IsNewSession( ) method returns true if a new session was created for a given request. If this is a new session but the ASP.NET_SessionId cookie is present, this indicates a timeout situation"
Handling it on the client can be fairly easy because you know how long the session timeout value is in minutes, and can check that on the browser since the session will timeout at pretty much the same time a script on the browser would determine that 20 minutes are up.
Bookmarks