Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change session timeout on IIS Express?

I would like to test session timeout problems while using IIS Express but I can't figure out how to modify the Session State setting so I can change the Time-out for Cookie Settings. Is this a modifiable setting?

like image 334
Shane Courtrille Avatar asked Apr 18 '12 22:04

Shane Courtrille


People also ask

How do I change session timeout in IIS?

Click on Start -> Administrative Tools -> IIS. Click on the website name and open ASP feature from IIS group. Expand Session Properties under Services and as per requirement modify Time-Out value [Default Value is 00:20:00 (HH:MM:SS)]. From the Actions Pane, click on Apply link to save the changes.

How do I set session timeout in IIS 10?

Expand the local computer node, expand "Web Sites", right-click the appropriate website, and then click Properties. 3. Click the "Web Site" tab. 4.In the Connections area, change the value in the "Connection timeout" field, and then click OK.


1 Answers

Try following

1.In the web application's web.config file set sessionState timeout something like below (it is in minutes)

<sessionState timeout="30" />

2.Make sure that your application's app pool idle time out is greater than or equal to the timeout specified above (you can run the following command from the iisexpress installation folder)

appcmd set config /section:applicationPools /[name='YourAppPoolName'].processModel.idleTimeout:0.00:30:00
like image 73
vikomall Avatar answered Oct 04 '22 10:10

vikomall