Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Is my security cookie timing out?

Thread Tools

Is my security cookie timing out?

Paul W
Posts: n/a
Hi - I have an app that does not use sessions:

<sessionState mode="Off" stateConnectionString="tcpip="
sqlConnectionString="data source=;Trusted_Connection=yes"
cookieless="true" timeout="600" />

It does use Forms authentication:

<authentication mode="Forms" >
<forms loginUrl="Login.aspx"
name = "Tenni" path="/"
protection="Validation" timeout="600" slidingExpiration="true">

If a user leaves a session idle for a while (15 mins+) then when they go
back to it, it will redirect them to Login.aspx. The url for the displayed
page is then "\login.asp?RedirectUrl=nextpage.aspx" where
'nextpage.aspx' is the page they WANTED to move to.

I am no expert, but this appears to me that my security cookie is timing
out. I thought my settings in web.config (above) would prevent this.

In my call to System.Web.Security.FormsAuthentication.SetAuthCoo kie I have
tried specifying both a session and non-session cookie - but I get the same

Can someone shed any light, or suggest how I might get more info on what's
going on?

The problem only seems to occur on my production server (hosted at If I run it hosted on my own development machine, it
never does this(!).



Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cookie Question (IP as domain and cookie file location) =?Utf-8?B?UGF1bA==?= ASP .Net 1 01-10-2006 08:37 PM
Any downsides to cookie assignment inside custom class using HttpContext.Current? ASP.NET 2.0 cookie fix? ASP .Net 2 08-17-2005 06:43 AM
Cookie and Session Cookie Questions. Shapper ASP .Net 1 04-27-2005 11:20 AM
Session cookie? Browser instance cookie? Ben ASP .Net 3 06-03-2004 03:41 AM
Stumped on FormsAuth Cookie Timing Out George Durzi ASP .Net Security 2 09-25-2003 02:59 PM