在web.config中设置会话超时 [英] set session timeout in web.config

查看:303
本文介绍了在web.config中设置会话超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经非常努力,但无法找到有关如何设置会话超时值的过程中的会议一个ASP.Net Web应用程序的样本。

I have tried very hard but cannot find a sample about how to set session timeout value for in-process session for an ASP.Net web application.

我使用VSTS 2008 +的.Net 3.5 + C#。下面是我写的由我自己来设置超时时间为1分钟,是正确的吗?

I am using VSTS 2008 + .Net 3.5 + C#. Here is what I wrote by myself to set timeout to be 1 minute, is it correct?

我在web.config中的System.Web节写,

I write under system.web section in web.config,

<sessionState timeout="1" mode="InProc" />

在此先感谢, 乔治

thanks in advance, George

推荐答案

是这样的:

<configuration>
  <system.web>
     <sessionState timeout="20"></sessionState>
  </system.web>
</configuration>

应该看到您的权利

should see you right

这篇关于在web.config中设置会话超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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