如何更改会话超时 [英] how to change Session Timeout

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

问题描述

我有一个运行在本地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.

推荐答案

默认会话超时为20分钟,但一个会话可以超时
更改.
有两种方法可以更改会话超时时间
在asp.net中是:-


1)从网络配置.通过设置会话timot文件
元素,例如
By default session time out is 20 minutes but one can
change it.
There are two ways to change the sessiontime out
in asp.net that is:-


1) from web config. file by setting the session timot
element eg.
<sessionstate timeout="60"/>




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



or
2) by doing programtically eg.

session.timeout=60



已添加到



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


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

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