Re: Detecting Session Timeout



You can't.

All you can do on the server, is when there is a request after the timeout,
you can detect it is a new session (either because your session variables
are empty, or because IsNewSession returns true), and redirect then.

Or you can have a countdown running on the client in javascript that
redirects.

The server however cannot know that the client has timed out and send a
redirect down.

"Mike" <Mike@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:81E8C10C-37E5-4846-AC61-5F05C20C3B97@xxxxxxxxxxxxxxxx
Hi. How can I detect if a user's session has timed-out? I'd like to be
able
to redirect the user to a specified page in the event of session timeout.

Thanks!


.



Relevant Pages

  • Re: session state variables expiring too quickly
    ... since you have set your session timeout for 120 minutes. ... > because my ASP.Net host doesn't support running a state server on the ... > I'm developing the app on my local IIS Web server and then using Visual ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Session breaking on redirect
    ... As the server is located within LAN and published out through ISA Server, ... So it will not pass cookies from one to another hence session might seem ... I have recently encountered a very strange problem: on every redirect ... hours, there's a MS CMS 2002 installation there, but the same thing ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Best way for setting PHP session timeout?
    ... It's much more consistent than PHP's built-in probabalistic session ... probabalistic session timeout has a *longer* timeout than what you ... You are comparing server time against server time, ...
    (comp.lang.php)
  • Re: Application Variable disappears. v2.0
    ... Are you deploying to Win2003 server while developing on a non-Win2003 ... same timeout as you session does, and it appears that your application ... variable is being destroyed by the session end while it is in fact timing ... protected void Application_Start ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: session expiry when using sessionState mode="SQLServer"
    ... The timeout works fine in inProc session mode. ... Session_End doesn't fire in SQL Server session state mode. ...
    (microsoft.public.dotnet.framework.aspnet)

Loading