Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Default expiration time for Session?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01340515
Message ID:
01340602
Vues:
9
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform