Re: Global.asax
From: Hans Kesting (news.2.hansdk_at_spamgourmet.com)
Date: 04/23/04
- Next message: Armin Zingler: "Re: how to insert record from another table to dataset?"
- Previous message: Philip Q [MVP]: "Re: Global.asax"
- In reply to: ruca: "Global.asax"
- Next in thread: Patrice: "Re: Global.asax"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 23 Apr 2004 12:16:22 +0200
"ruca" <ruuca@iol.pt> wrote in message news:OOataCRKEHA.624@TK2MSFTNGP11.phx.gbl...
> 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
>
>
When the session ends, there is no request to respond to (there has been
no request for the past 20 minutes, so the browser may have been closed
or even the internet connection to that browser is off)
What you probably want to do is, if the browser has displayed the last
screen for too long, redirect to a login page.
This is impossible from the server side, but possible from client side:
use <meta http-equiv=refresh> to redirect after the session should have
been expired.
Note: this may start a new session!
Hans Kesting
- Next message: Armin Zingler: "Re: how to insert record from another table to dataset?"
- Previous message: Philip Q [MVP]: "Re: Global.asax"
- In reply to: ruca: "Global.asax"
- Next in thread: Patrice: "Re: Global.asax"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|