|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Session Variables randomly disappearing
Hi all,
I am looking for some advice. I have got a website that is using sessions to see if the users session has timed out when they have logged into the site. The problem that I have got is that the session is set to 30 minutes but the session times out when it feels like like it, sometimes it lasts 5 mins and other times it times out just clicking on another link. So I am losing all session variables and so the user has to log in every 3 minutes instead of 30. The wierd thing is that it only seems to be happening on our one of our servers. We have it running on IIS5/5.1 and 6 and the only one that we are having problems with is IIS6. We have all the latest Service Packs and the latest patches. We have also disabled the IIS recycler and this hasnt solved anything. The differences that we have is that IIS6 is running as a German server and the others are English. thanks in advance |
|
#2
|
|||
|
|||
|
I don't have any answer, other than to say review your server and website code configurations. Sessions don't just up and vanish on IIS servers. Check event logs.
__________________
====== Doug G ====== "Hide, hide witch! The good folk come to burn thee. Their keen enjoyment hid behind their gothic mask of duty." -Mark Clifton |
|
#3
|
|||
|
|||
|
Quote:
I found what the problem was the enable rapid-fail protection within the DefaultAppPool was enabled to 5 failures than it would restart. I disabled this along with the Recycle worker processes and now it times out the session when is it supposed too. |
|
#4
|
|||
|
|||
|
I'm happy to hear you isolated the problem, and thanks for posting your solution!
|
|
#5
|
|||
|
|||
|
Just a tip for shared hosting, put sites requiring sessions in the own app pool, or the terminate commands will terminate all sessions in the pool, not just the one site.
|
![]() |
| Viewing: Dev Shed Forums > System Administration > IIS > Session Variables randomly disappearing |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|