在IIS Express上更改会话超时? [英] Change session timeout on IIS Express?

查看:370
本文介绍了在IIS Express上更改会话超时?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在使用IIS Express时测试会话超时问题,但我无法弄清楚如何修改会话状态设置,以便我可以更改Cookie设置的超时时间。这是可修改的设置吗?

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。在Web应用程序的web.config文件中设置sessionState超时,如下所示(以分钟为单位)

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


< sessionState timeout =30/>

2.确保应用程序的应用程序池空闲时间out大于或等于上面指定的超时(您可以从iisexpress安装文件夹运行以下命令)

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


这篇关于在IIS Express上更改会话超时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆