Re: Proper session timeout

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

From: No One (noone_at_yahoo.com)
Date: 12/23/04


Date: Thu, 23 Dec 2004 14:24:09 GMT

I have that too.

<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false" timeout="20"/>

Daniel Ansari wrote:

> The <forms> element in <authentication> section has a timeout attribute -
> this is actually the timeout for the authentication ticket, and it sounds
> like this is the one you've got set.
>
> The session has a separate timeout specified in the <sessionState> element
> in <system.web>.
>
> This thing had me stumped for a long time.
>
> Regards,
> Daniel
>
> "No One" <noone@yahoo.com> wrote in message
> news:41CA43CE.92235B0F@yahoo.com...
> > I have a web app that uses forms authentication. When sessions timeout,
> > the user is not automatically redirected to the login page. Instead,
> > they see an error message about object references not being set. These
> > errors occur in the C# code behind. I also have to manually redirect
> > users that are not logged in. Does ASP.Net support sessions properly
> > out of the box (I have the web.config set to use forms authentication)
> > or do I have to role my own Session checking scheme to get users to the
> > login page?
> >



Relevant Pages

  • RE: forms authentication timeout
    ... Though there does exist the "timeout" setting in the web.config for forms ... the Forms Authentication Ticket is actually ... Authentication ticket & cookie generation your self in code. ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Proper session timeout
    ... Have you tried setting the session timeout in IIS too? ... > Daniel Ansari wrote: ...
    (microsoft.public.dotnet.framework.aspnet)