Re: Session timout problem

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

From: Max (maximus_at_portvista.com)
Date: 02/22/04


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");
> }
>



Relevant Pages

  • Re: Page Load event is called....
    ... > the life cycle of every page, ... > instructing it (the client) to open a different page instead of the one ... > server and skips the additional HTTP request but neither method will ... >> always happen when I navigate to the next page. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Error in ccmexec.log
    ... running the SQL/IIS/SMS servers on the same box. ... I was able to "install the ... Advanced Client" from the SMS Console but the clients never show up as ... is not reponding to HTTP request. ...
    (microsoft.public.sms.setup)
  • Re: Question for Web Service Buffs
    ... Callbacks to the client from a web service (as in, ... Each checkback is a separate, stateless, http request. ... in session state or someplace like that. ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Using ServletOutputStream in Servlet Vs <img src="../images/abc.gif" />
    ... This sends a response to the client containing an image (with the wrong ... This causes the client to send an HTTP request for an image. ... use a servlet mapping to cause the former to be used to respond to the latter. ...
    (comp.lang.java.programmer)
  • Strange HTTP Socket connexion problem
    ... I'm having a strange problem trying to connect to a specific site ... but have whittled the script down to the most basic HTTP request ... bind (CLIENT, sockaddr_in(0, INADDR_ANY)) ... telneting to port 80 using a cut and paste from the $header ...
    (comp.lang.perl.misc)