Change session timeout on IIS Express?

回眸只為那壹抹淺笑 提交于 2019-12-18 07:46:27

问题


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?


回答1:


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


来源:https://stackoverflow.com/questions/10219169/change-session-timeout-on-iis-express

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!