Change session timeout on IIS Express?

I would like to test session timeout issues when using IIS Express, but I cannot figure out how to change the session state setting so that I can change the timeout for cookie settings. Is this a mutable setting?

+7
source share
1 answer

Try to execute

1. In the web application, the web.config file sets the sessionState timeout like this: (in minutes)

<sessionState timeout="30" />

2. Make sure the application application pool timeout is greater than or equal to the above time (you can run the following command from the iisexpress installation folder)

 appcmd set config /section:applicationPools /[name='YourAppPoolName'].processModel.idleTimeout:0.00:30:00 
+12
source