Global.asax

From: ruca (ruuca_at_iol.pt)
Date: 04/23/04


Date: Fri, 23 Apr 2004 09:53:27 +0100

Hi,
How can I Redirect my web application to a page when a session ends? (I've
set a timeout)

I have this in my Global.asax in Session_End Event:
Context.Response.Redirect("login.aspx")

but it doesn't work

-- 
Programming ASP.NET with VB.NET
Thank's (if you try to help me)
Hope this help you (if I try to help you)
ruca


Relevant Pages

  • RE: Web.Config Timeout Expired Redirect Custom Error Page
    ... The ASP.NET session timeout is a passive not an active action. ... if the session has timed out and then redirect to another page. ... > timeout set in the config file expires. ...
    (microsoft.public.dotnet.general)
  • Global.asax
    ... How can I Redirect my web application to a page when a session ends? ... set a timeout) ... Hope this help you ruca ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Logg off users with session.timeout
    ... if the session has expired or doesn't exist we ... redirect to a "timed out" page. ... The timeout page contains only a ... change our method to something better - or if this is the norm. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Detecting Session Timeout
    ... 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. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Global.asax
    ... ruca wrote: ... > How can I Redirect my web application to a page when a session ends? ... it is usually because of a timeout because the ... You can only redirect the user when the next session starts again. ...
    (microsoft.public.dotnet.framework.aspnet)

Loading