如何在asp.net web.config文件中设置第二个会话超时 [英] how to set session timeout in second in asp.net web.config file
本文介绍了如何在asp.net web.config文件中设置第二个会话超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人可以告诉我如何在asp.net web.config文件中设置第二秒的会话超时
Can anybody tell me that how to set session timeout in second in asp.net web.config file
推荐答案
IIS 6.0:允许的最小值为1分钟最大值为1440分钟。
IIS 6.0: The minimum allowed value is 1 minute and the maximum is 1440 minutes.
<configuration>
<system.web>
<sessionState timeout="1440"></sessionState>
</system.web>
</configuration>
会话超时可以只能在几分钟内完成。有一个例子,超时设置为120分钟。
Session timeout can only be set in minutes. There is an exemple where the timeout is set to 120 minutes.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.web>
<sessionState timeout="120"></sessionState>
</system.web>
</configuration>
网络配置设置
< sessionState
mode =InProc
cookieless =true
timeout =30/>
web config settings
< sessionState
mode="InProc"
cookieless="true"
timeout="30" />
这篇关于如何在asp.net web.config文件中设置第二个会话超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文