Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Session Timeout
Message
De
21/01/2009 15:12:53
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Session Timeout
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP SP2
Divers
Thread ID:
01376021
Message ID:
01376021
Vues:
60
Hi,

I've been trying to determine how the Session.Timeout value works. As I test I added code in Session.Start and Session.End to send an email containing some info. I'm setting Session.Timeout in code in Page_Load. With a value of 5 I get this from Session.Start:

Session ID: 05bdk3451d22iz23xyj3xhbz
Started at: 21/01/2009 19:53:57

and this from Session.End:

Session Timeout was: 5
Session Id: 05bdk3451d22iz23xyj3xhbz
Ended at: 21/01/2009 19:59:20

Both times are from DateTime.Now.ToString() and (roughly) as expected 5 mins apart. With the Timeout set to 30 mins I get:

Session ID: 1bdrtaawiycq5xrhzbgzdsqh
Started at: 21/01/2009 19:11:51
and
Session Timeout was: 30
Session Id: 1bdrtaawiycq5xrhzbgzdsqh
Ended at: 21/01/2009 19:31:58

Now, although the Session.Timeout is 30 minutes the actual elapsed time is (again roughly) 20 minutes. 20 Minutes is the default timeout and seems to be overriding the 30 minutes as set. In the first example the 5 minute Timeout is being honoured but in the second the default value seems to be used.

Any elucidation,
Regards,
Viv
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform