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

问题描述

我有一个运行在本地IIS服务器(版本5)上的asp.net网站.

现在,我想将会话超时从默认的20分钟更改为假设的5分钟.
我已经尝试过各种方法,例如;从IIS,web.config和session.timeout属性更改会话超时,但这些都不起作用.

请让我知道如何更改或增加会话超时的方式.

我的要求实际上是将超时时间从20分钟增加到1小时30分钟.

请帮助我.

在此先感谢.

I have a asp.net website running on my local IIS server (version 5).

Now I want to change the session timeout from default 20 minutes to let suppose 5 minutes.
I have tried various things e.g; change the session timeout from IIS , from web.config and from session.timeout property but having no effect any of these.

Please let me know the way how to change or increase the session timeout.

My requirement actually is to increase the timeout from 20 mins to 1 hr and 30 mins.

Please Help me in this.

Thanks in Advance.

推荐答案

<sessionstate timeout="60"/>




2)以编程方式进行操作,例如



or
2) by doing programtically eg.

session.timeout=60



已添加到 [ ^ ]也可能会对您有所帮助.



Added to that this[^] also might help you.


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

07-31 21:50