ASP.Net会话超时:默认情况下使用为什么20分钟? [英] ASP.Net Session Timeout: Why 20 minutes used as default?

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

问题描述

在ASP.Net默认的会话超时设置为20分钟。为什么这样?有它背后的具体原因?

感谢你。


解决方案

  

由于每个打开的会话持有到内存中不应设置高于20分钟(特殊情况除外)。


查看Session.Timeout在MSDN网站

注意他们也给个说法的最低


  

应该也不能设置低于4分钟,因为客户很少当时导致会话状态丢失内做出回应。



希望这有助于...

In ASP.Net the default Session Timeout is set to 20 minutes. Why so? Is there any specific reason behind it?

Thanking you.

解决方案

It should not be set higher than 20 minutes (except in special cases) because every open session is holding onto memory.

From Session.Timeout on MSDN site
Note they also give an explanation for the minimum

It should also not be set lower than 4 minutes because clients rarely respond within that time resulting in a loss of session state.


Hope this helps...

这篇关于ASP.Net会话超时:默认情况下使用为什么20分钟?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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