Problem with session timeout
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngfreeforall' list.


Enrique Avalle
Hello,

I got my session timespan set in 10 minutes.

I interact with my site and after 10 minutes the timeout is reached; But the point is that I kept interacting with the site all that time up to the last second.

I store my users id in a session var, so after some minutes they got to log on again even if they are using the site. I wonder if there is a catch in the way asp.net manages sessions, compared with classic asp, or It is just some kind of bug I am experiencing due to my novice state :)

Thx for any comment,

Enrique
Reply to this message...
 
    
Alex Lowe
To take advice from G. Andrew Duthie on the ASP.NET fourms:

"It may be that something is causing your application to restart
periodically. One thing to try that may help you isolate this is to set
your application to use out of process Session state (more information
here). If your Session data then stays intact for the length of the
SessionTimeout value, that's a pretty good sign that the application has
been restarting unexpectedly. You can also check the event logs for the
Web server to see if there are any warnings or error messages coming
from either IIS or the ASP.NET worker process.

You may also want to check if it is just this one application that this
is happening with, or all ASP.NET applications on that machine. That
will also help you track down the problem."

Hth,

Alex - AspFriends.com Moderation Team
Microsoft MVP - ASP.NET

***********************************************************
Translate C# code to VB.NET code at
http://aspalliance.com/aldotnet/examples/translate.aspx
***********************************************************

-----Original Message-----
From: Enrique Avalle [mailto:Click here to reveal e-mail address]
Sent: Monday, August 19, 2002 9:35 AM
To: aspngfreeforall
Subject: [aspngfreeforall] Problem with session timeout

Hello,

I got my session timespan set in 10 minutes.

I interact with my site and after 10 minutes the timeout is reached; But
the point is that I kept interacting with the site all that time up to
the last second.

I store my users id in a session var, so after some minutes they got to
log on again even if they are using the site. I wonder if there is a
catch in the way asp.net manages sessions, compared with classic asp, or
It is just some kind of bug I am experiencing due to my novice state :)

Thx for any comment,

Enrique

| ASP.net DOCS = http://www.aspng.com/docs | [aspngfreeforall] member
Click here to reveal e-mail address = YOUR ID |
http://www.asplists.com/aspngfreeforall = JOIN/QUIT |
news://ls.asplists.com = NEWSGROUP

Reply to this message...
 
    
Greg Quinn
If you are changing your applications source code, sometimes it will need to
be re-compiled and it will recycle all information and session state. Best
solution to this is to code everything on a staging server and perform one
batch update at off-peak hours to the production server to minimise user
frustration.

There is also a documented fix in Service Pack 2 which fixes some of the
problems of the application recycling unexpectantly, so load service pack 2
if you have not already. Available from www.asp.net

Greg

-----Original Message-----
From: Enrique Avalle [mailto:Click here to reveal e-mail address]
Sent: Monday, August 19, 2002 6:35 AM
To: aspngfreeforall
Subject: [aspngfreeforall] Problem with session timeout

Hello,

I got my session timespan set in 10 minutes.

I interact with my site and after 10 minutes the timeout is reached; But
the point is that I kept interacting with the site all that time up to the
last second.

I store my users id in a session var, so after some minutes they got to
log on again even if they are using the site. I wonder if there is a catch
in the way asp.net manages sessions, compared with classic asp, or It is
just some kind of bug I am experiencing due to my novice state :)

Thx for any comment,

Enrique

| ASP.net DOCS = http://www.aspng.com/docs | [aspngfreeforall] member
Click here to reveal e-mail address = YOUR ID | http://www.asplists.com/aspngfreeforall JOIN/QUIT | news://ls.asplists.com = NEWSGROUP
Reply to this message...
 
 




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com