ASP.NET - 会话超时 [英] ASP.NET - Session Time Out

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

问题描述

的web.config 文件为我的应用程序,在<的sessionState>
第一节设置超时=60(分钟),但会话状态
在我的应用程序变量似乎在约1分钟内到期。
任何想法可能是什么原因?

In the web.config file for my application, in the <sessionState> section I have set timeout="60" (in minutes), but session state variables in my application seem to be expiring in about 1 minutes. Any idea what could cause this?

推荐答案

如果您是在每天的应用程序池回收可以松会话时间存储会话状态,在PROC,那么(这种情况发生了很多低内存的服务器上)。你可以尝试存储会话状态出PROC的使用状态服务器或SQL Server。

If you are storing session state "in proc" then every time the app pool recycles you can loose session (this can happen a lot on a server with low memory). You could try storing session state "out of proc" using State Server or SQL Server.

请参阅 PRB:会话数据将丢失当您使用ASP.NET InProc会话状态模式

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

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