Re: Random Session Expiration

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Shrinivas Reddy (Reddy_at_discussions.microsoft.com)
Date: 12/03/04


Date: Fri, 3 Dec 2004 08:43:02 -0800

Hi John,

Thanks for your response.
I don't have any Response.Redirect's in my code. This problem is like I
mentioned random. Sometimes the session does not expire till 20 minutes which
is the timeout specified in Web.config.

Thanks
Shrinivas

"John M Deal" wrote:

> I've never seen this happen when session expires, but I have seen it
> when a response.redirect is used without specifying the second parameter
> as true as it aborts the processing of the current page and then
> attempts to switch to the new page. I'm sure there are lots of other
> reasons for this exception to happen, however I'd at least eliminate
> this possibility. If you have any Response.Redirects I'd try changing
> them to something like:
>
> Response.Redirect("NewPage.aspx", true);
>
> Hope that helps.
>
> Have A Better One!
>
> John M Deal, MCP
> Necessity Software
>
> Shrinivas Reddy wrote:
> > I am working on ASP.NET application in which the session expires randomly on
> > any page.
> > Before the session expires I see the following error in VS.NEt output window
> >
> > ==============================================
> > An unhandled exception of type 'System.Threading.ThreadAbortException'
> > occurred in Unknown Module.
> >
> > Additional information: Thread was being aborted.
> > The program '[6036] aspnet_wp.exe:
> > /LM/w3svc/1/root/GWRS.Web-23-127465768399324317' has exited with code 0 (0x0).
> > The thread '<No Name>' (0x157c) has exited with code 0 (0x0).
> > ==============================================
> >
> > Thanks
> > Shrinivas
>



Relevant Pages

  • Question about redirecting to a "session expired" page...
    ... When a logged in user's session expires, I want that user redirected back to ... "AuthCookie" that gets set when you use the FormsAuthentication class? ... means the session expired and it would redirect back to the login page. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Avoiding page expiry?
    ... >:I'm using a webform that expires after a few minutes. ... On submitting the form after the expiry time any data is lost. ... session is regarded as being inactive while you fill out the form. ...
    (comp.security.misc)
  • Re: session wont timeout
    ... Maybe this is a session cookie issue? ... client browser there is this one: WSS_KeepSessionAuthenticated Expires: At ... If I kill the session cookie using IE Developer Toolbar, ... possible and IIS would throw another challenge. ...
    (microsoft.public.sharepoint.windowsservices)
  • Sessions and expiring cookies
    ... I set my session parameter so the session is a few minutes long, ... user goes inactive for that period the session expires. ... browser, since that might be subverted or buggy. ...
    (comp.lang.php)