Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Session Timeout in Classic ASP website

Where does classic ASP store the value for session timeout? I have looked through the code and this classic ASP website isn't using Global.asa(so no "Session_OnStart") or Session.timeout=x. The website is hosted on IIS 7.On IIS for this website,in Features view,double-clicking on "ASP" -> Session Properties -> Enable session is set to 'True' and the Time-out value is set to 20. The problem is: though the session time-out is set to 20 mins. on IIS,it times out after 5 minutes. Is there any other way/place to modify the session timeout value for this classic ASP website?

Can someone help me with this please?

Edit: I looked at the settings for the application pool.The Idle time-out is 20 mins. and Recycling->Regular Time Interval is set to 1740.

like image 958
user1550951 Avatar asked Apr 10 '14 06:04

user1550951


1 Answers

Following on from my comments, your Recycling settings need to be set like the following image to make sure the Application Pool will not be reset.

Recycling settings in IIS 7+

It's also worth setting the "Generate Recycle Event log Entry" so you can see what events are causing your Application Pool to reset. That way you can monitor it in the Event Viewer.

enter image description here


Useful Links

  • Why is the IIS default app pool recycle set to 1740 minutes? (Saturday, April 6, 2013)
like image 75
user692942 Avatar answered Oct 01 '22 10:10

user692942