asp.net - ASP.NET 中的 session 超时限制?

标签 asp.net asp.net-mvc-2 web-config

我正在为用 C# 编写的 ASP.NET 应用程序修改 Web.Config 中的 session 超时,目前我将超时设置为 120 分钟,如下所示:

<sessionState mode="InProc" cookieName="Application_SessionId" timeout="120"/>

这个值有限制吗?因此,例如,如果我希望将其设置为 24 小时(1440 分钟),这是否适用?

它是带有 MVC 2.0 的 ASP.NET 4.0 版

最佳答案

我不确定将 session 超时设置为 24 小时是否有意义,但是我认为将其设置为最多 365 天是适用的。

关于asp.net - ASP.NET 中的 session 超时限制?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17719982/

相关文章:

c# - 如何从在 asp.net 中用 scriptmanager.registerclientscript 编写的 javascript 确认框返回值?

asp.net - 如何在线程内生成 ActionLink

web-config - 为什么我们需要 ASP .NET 5 wwwroot 中的 web.config?

c# - ASP.NET MVC 3 Url.Action匹配

asp.net - 具有 MVC 2 强类型 HTML 助手的自定义 ViewModel 在创建时返回空对象?

asp.net - 编译调试 ="true"和 Release模式 "release"之间是否有任何关系

html - 设置当前页面的文本

c# - MVC System.Web.Helpers 圆环图标签定位

asp.net - Visual Studio 无法识别 css

asp.net - 页面不会填满浏览器的高度