Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Default expiration time for Session?
Message
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01340515
Message ID:
01340602
Views:
8
>Form authentication timeout is 30 minutes by default. It's in the web.config. Session timeout is set separately (also in the web.config) - I think it's like 20 minutes by default.
>
>Take a look at this post by Scott Guthrie (make sure you read the comments). It's pretty helpful.
>
>http://weblogs.asp.net/scottgu/archive/2005/11/08/430011.aspx

One of the comments in the blog proposes this solution
==================================================================================================
The answer to all of your problems is very easy!

Instead of changing the cookie or the session timeout, force a refresh. The easiest way to do this is ... put the following line in the form_load.

Response.AddHeader("Refresh", Convert.ToString((Session.Timeout * 60) - 20));

The best place to put this code is in the Master Page Form Load.
================================================================================================

I'm still going through the comments...
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform