Re: how to redirect to loginpage after session timeout

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Anachostic (use.handle_at_yahoo.com)
Date: 05/30/04


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
>
>
>
>



Relevant Pages

  • 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: Sessions lost?
    ... It is running in a frameset, but pages are all within the same site. ... >> I've got two sites, on the same server, with the same pages (ones for> test, ... >> The sites login, set some session values, then redirect to a .htm that>> builds a frameset and loads some pages. ...
    (microsoft.public.inetserver.asp.general)
  • 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: Problem with sending data via the Post method. (URGENT)
    ... You would actually be creating an entirely new session. ... When you redirect to result.aspx you are back to using your users session. ... I can't see a way of doing what you are trying to do from the server. ... >>the ecommerce server that is causing you the problems. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Newbie with a smallbiz2000 installation, check my config?
    ... > Windows creates a profile path under Documents & Settings. ... > a folder with that name already exists (maybe a local user with the ... > server, open the properties for this folder, and ensure that you have ... > you redirect key folders from a user's profile to a location on your ...
    (microsoft.public.backoffice.smallbiz2000)