ASP.NET 中的默认会话超时是多少?
ASP.NET 中的默认会话超时值是多少?
What is the default session timeout value in ASP.NET?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
ASP.NET 中的默认会话超时值是多少?
What is the default session timeout value in ASP.NET?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(5)
MSDN 为 20 分钟
根据 微软软件定义网络:
It is 20 Minutes according to MSDN
From MSDN:
这取决于配置或编程更改。
因此,检查当前值的最可靠方法是在运行时通过代码。
请参阅HttpSessionState.Timeout 财产; 默认值为 20 分钟。
您可以通过 HttpContext 在 ASP.NET 中访问此属性:
It depends on either the configuration or programmatic change.
Therefore the most reliable way to check the current value is at runtime via code.
See the HttpSessionState.Timeout property; default value is 20 minutes.
You can access this propery in ASP.NET via HttpContext:
默认值为 20 分钟。
http://msdn.microsoft.com/en-我们/library/h6bb9cz9(v=vs.80).aspx
The default is 20 minutes.
http://msdn.microsoft.com/en-us/library/h6bb9cz9(v=vs.80).aspx
会话的默认过期时间为 20 分钟。
您可以更新会话状态并配置超时下的分钟数
The Default Expiration Period for Session is 20 Minutes.
You can update sessionstate and configure the minutes under timeout