什么是ASP.NET默认会话超时? [英] What is default session timeout in ASP.NET?

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

问题描述

什么是ASP.NET默认的会话超时值?

What is the default session timeout value in ASP.NET?

推荐答案

有根据的 MSDN

从MSDN:

可选的时间跨度属性。

指定它被放弃前会话可以空闲的分钟数。超时属性不能被设置为是大于525601分钟(1年)的值的过程和状态的服务器模式。
  会话超时配置设置仅适用于ASP.NET页面。更改会话超时值不影响会话超时ASP页。同样,更改会话超时的ASP页面,不影响会话超时ASP.NET页面。
  默认值是20分钟。

Specifies the number of minutes a session can be idle before it is abandoned. The timeout attribute cannot be set to a value that is greater than 525,601 minutes (1 year) for the in-process and state-server modes. The session timeout configuration setting applies only to ASP.NET pages. Changing the session timeout value does not affect the session time-out for ASP pages. Similarly, changing the session time-out for ASP pages does not affect the session time-out for ASP.NET pages. The default is 20 minutes.

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

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