使用应用程序变量时会话超时(未使用会话状态) [英] Session time out when using Application variable (no session state used)

查看:81
本文介绍了使用应用程序变量时会话超时(未使用会话状态)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个Web应用程序,在其中我使用应用程序变量来维护会话状态.我根本没有使用SESSION状态.我已注释了代码中可能存在的所有代码(如web.config,Global.asax,asp.net页面等位置).但是应用程序仍然会在20分钟后超时.
我什至尝试在IIS 7.0的会话状态中启用false.还是没有运气
我什至将默认超时时间增加了20分钟,仍然没有运气.
•ASP.Net 3.5
•C#
•VS 2008
•SQL Server 2005
•应用程序变量
•无会话状态
•用于构建的IIS 7
•用于服务器构建的Server 2003(用于开发的XP)
请帮助我确定问题所在.

I have created an web application in which i use application variable for maintaining the session state. I am not using SESSION state at all. I have commented all code that can possibly exist in the code (locations like web.config, Global.asax, asp.net pages). But still the application gets timed out at 20 minutes.
I even tried enabling false in session state of IIS 7.0. Still no luck
I even increased the default time out from 20 minutes more, still no luck.
•ASP.Net 3.5
•C#
•VS 2008
•SQL Server 2005
•Application Variable
•No Session state
•IIS 7 for builds
•Server 2003 for server builds (XP for development)
Please help me identify the issues.

推荐答案

在IIS管理控制台中,查看Web应用程序所驻留的应用程序池.在高级设置"下,查看回收利用.我不确定100%,但是可能是您的应用程序池正在回收,或者是因为时间间隔设置太低,或者是因为达到了内存限制.

希望对您有所帮助.
In the IIS Management Console, have a look at the Application Pool your Web Application lives in. Under Advanced Settings have a look at Recycling. I''m not 100% sure but it could be that your Application Pool is recycling, either because the Interval is set too low, or because the memory limits are being reached.

Hope it helps.


这篇关于使用应用程序变量时会话超时(未使用会话状态)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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