如何在asp.net中增加会话超时 [英] how to increase session timeout in asp.net

查看:75
本文介绍了如何在asp.net中增加会话超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在asp.net中增加会话超时

how to increase session timeout in asp.net

推荐答案

一个选项是在web.config中更改超时:





http://blog.arvixe.com/how-to-increase-or-decrease-session-timeout-in-your-asp-net-application/ [ ^ ]
one option is to change timeout in web.config:


http://blog.arvixe.com/how-to-increase-or-decrease-session-timeout-in-your-asp-net-application/[^]


默认情况下,会话超时设置为在20分钟内在ASP.NET中过期。要增加超时或到期,您应该在web.config文件中更改SessionState的超时属性

By default, Session timeouts are set to expire in ASP.NET in 20 minutes. To increase the timeout or expiry you should change the timeout attribute for SessionState in the web.config file
<sessionState  timeout="40" />
Note that if you are using Forms authentication, the Forms timeout setting will log the user out after the set timeout period so you will also have to adjust this attribute:
<authentication mode="Forms">
   <forms timeout="40"/>
</authentication>


查看已解决以下链接中的一个



asp.net中的会话超时 [ ^ ]
see the solved one in following link

session timeout in asp.net[^]


这篇关于如何在asp.net中增加会话超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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