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:4E**********************************@microsof t.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");
}