Re: how to redirect to loginpage after session timeout
From: Anachostic (use.handle_at_yahoo.com)
Date: 05/30/04
- Next message: William Ryan eMVP: "Re: Market penetration of ASP versus ASP.NET"
- Previous message: Rick Strahl [MVP]: "Re: open connection"
- In reply to: Ather Ali Shaikh: "how to redirect to loginpage after session timeout"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 29 May 2004 20:58:48 -0700
Keep in mind that all web sessions are disconnected. With that said,
once a person loads a page from the web server, no code that runs on the
server can affect that person because they are disconnected.
The server will handle killing of the user's session so the next time
they request a page, they will need to authenticate. However, to enforce
this on the client, you can use Meta Refresh or Javascript to redirect
them to onther page after their time is expired.
Personally, I would be be careful about what you impose on the client. A
user might not be happy about having their browser page redirected if
they are in the middle of reading a sentence or just about completed with
a long form.
"Ather Ali Shaikh" <ather.ali@eintelligencesoft.com> wrote in
news:#bH$AbHREHA.2824@TK2MSFTNGP12.phx.gbl:
> Hello
> I am using Forms Authentication. but the page is not redirect to
> desired
> login page after session is expired.
> When I debug the application. Session_end is called.
> In the Session_End method I write code to redirect to the LoginPage as
> (response.redirect("Login.aspx") or server.transfer("Login.aspx")).
> But it is not redirecting. It runs the redirecting code but
> physically not redirect.
>
> What should I do more.?
>
> Regards
> Ather Ali
>
>
>
>
- Next message: William Ryan eMVP: "Re: Market penetration of ASP versus ASP.NET"
- Previous message: Rick Strahl [MVP]: "Re: open connection"
- In reply to: Ather Ali Shaikh: "how to redirect to loginpage after session timeout"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|