在ASP.NET会话超时限制? [英] Session Timeout Limit in ASP.NET?

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

问题描述

我修改会话超时在web.config中为C#编写ASP.NET应用程序,目前我已经如下图所示设置为120分钟,超时:

I'm amending a Session time out in the Web.Config for an ASP.NET application written in C# and currently I have the timeout set to 120 minutes as shown below:

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

有没有这个值有限制吗?所以,如果比如我想将它设置为24小时(1440分钟),这将被应用?

Is there a limit to this value? So if for example I wished to set it to 24 hours (1440 minutes) would this be applied?

这是ASP.NET 4.0版与2.0 MVC

It's ASP.NET version 4.0 with MVC 2.0

推荐答案

我不知道,如果是有意义的会话超时设置为24小时,但肯定这将是适用于它设置为最大值365天我认为。

I am not sure if it makes sense to set the session timeout to 24 hours, but yes it would be applicable to set it to a maximum of 365 days i think.

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

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