如何设置会话和应用程序最大超时 [英] How to set session and application timeout maximum

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

问题描述

如何设置会话和应用程序的最大超时时间?

How to set session and application timeout maximum ?

推荐答案

<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;user id=sa;password=" cookieless="false" timeout="525600"/>




在web.config文件中


有用的链接

http://pinumallaprashantprofessionalexperience.wordpress.com/ [ ^ ]




in web.config file


usefull link

http://pinumallaprashantprofessionalexperience.wordpress.com/[^]


添加到您的web.config

Add in your web.config

<configuration>
  <system.web>
    <sessionstate>
      mode="InProc"
      cookieless="true"
      timeout="30" />
  </sessionstate></system.web>
</configuration>


打开您的Web配置文件,并查找< system.web>.标签.添加此代码或查找这些标签sessionstate和httpRuntim.

样本标签

open you webconfig file, and look for <system.web> tag. add this code or look for these tags sessionstate and httpRuntim.

sample tag

<configuration>
  <system.web>
    <!-- change the timeout-->
    <sessionstate

      mode="InProc"

      cookieless="true"

      timeout="60"/>
     <!-- change the executionTimeout-->
    <httpruntime executionTimeout="60"/>
  </system.web>
</configuration>



有关更多信息,请尝试阅读并了解有关超时(来自sessionState)和executionTimeout(来自httpRuntime)的信息


sessionState [ httpRuntime [



for more info, try to read and understand about the timeout (from sessionState) and executionTimeout(from httpRuntime)


sessionState[^]

httpRuntime[^]


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

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