Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 03-02-2009
Member
 
Join Date: Jan 2009
Posts: 10
To show the session timeout in ASP.NET

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?
Reply With Quote
  #2  
Old 03-02-2009
Member
 
Join Date: Jan 2009
Posts: 44
Re: To show the session timeout in ASP.NET

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!
Reply With Quote
  #3  
Old 03-02-2009
Member
 
Join Date: May 2008
Posts: 40
Re: To show the session timeout in ASP.NET

"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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "To show the session timeout in ASP.NET"
Thread Thread Starter Forum Replies Last Post
Difference between root session and standard user session in gimp Gajagamini Operating Systems 4 17-01-2011 11:14 AM
Windows 7 console session becomes unresponsive after Remote desktop session Krishanu Networking & Security 4 24-12-2010 07:58 AM
FTP problem - unable to make the session state request to the session state server. Benito Software Development 3 31-07-2009 01:09 PM
JavaScript to Show time countdown display after .net session timeout Taipai Software Development 3 16-05-2009 02:00 PM
RDP TimeOut christophe Windows Server Help 7 03-03-2008 03:14 PM


All times are GMT +5.5. The time now is 02:15 AM.