Re: Session timout problem
From: Max (maximus_at_portvista.com)
Date: 02/22/04
- Next message: Joerg Jooss: "Re: Download and save file to server from a URL (HTTP)"
- Previous message: Markusek Peter: ".rtf->clipboard->FreeTextBox"
- In reply to: mg: "Session timout problem"
- Next in thread: Alvin Bruney [MVP]: "Re: Session timout problem"
- Reply: Alvin Bruney [MVP]: "Re: Session timout problem"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 22 Feb 2004 21:05:14 GMT
The session_end does not initiate another http request if that's what you're
thinking. However, on the next request the client makes, it should activate
the session_end -- although there are known issues with that. You cannot
always rely on that triggering... do a search for that session_end sub --
also note that in an earlier version of .net that sub's name is different.
In my tests, one works, the other doesn't. I don't know if it's bugged or
what!
-Max
"mg" <mg@theworld.com> wrote in message
news:4EB06580-0453-4278-901B-F7D7F34397CE@microsoft.com...
> I can't get WebForm1 to load load automatically after a session timeout,
with the following code. How can I do so?
>
> In Web.config:
>
> <sessionState
> mode="InProc"
> timeout="1"
> />
>
>
> In Global.asax.cs:
>
> protected void Session_End(Object sender, EventArgs e)
> {
> Response.Redirect("WebForm1.aspx");
> }
>
- Next message: Joerg Jooss: "Re: Download and save file to server from a URL (HTTP)"
- Previous message: Markusek Peter: ".rtf->clipboard->FreeTextBox"
- In reply to: mg: "Session timout problem"
- Next in thread: Alvin Bruney [MVP]: "Re: Session timout problem"
- Reply: Alvin Bruney [MVP]: "Re: Session timout problem"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|