会话变量会丢失所有用户的值 [英] Session Variables lossing their values for all user

查看:64
本文介绍了会话变量会丢失所有用户的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

会话变量在超时限制之前失去所有用户的价值









请帮助我。

提前感谢

Session Variables losing their values for all user
before timeout limit



Please Help me.
thanks in advance

推荐答案

转到网站的应用程序池,转到性能选项卡。



取消选中以下框:

闲置后关闭工人流程(以分钟为单位)

或者将值设置为> =您设置的会话超时。



并且还要检查:



如果这是一个Windows 2003 IIS 6.0服务器,请检查该站点的

应用程序池属性。闲置后(以分钟为单位)''验证设置''关闭工作程序进程

'。



IIS6的默认设置是如果没有新请求进入20分钟,则关闭工作进程(网站/ app

池实例)。在这个

的情况下,所有进程中的会话都将丢失。
Go to the App Pool for the site, to the Performance Tab.

Either uncheck the box for:
Shutdown worker processes after being idle for (time in minutes)
or set the value to >= your set session timeout.

and also check :

If this is a Windows 2003 IIS 6.0 server, please check the site''s
application pool property. Verify the setting ''Shutdown worker processes
after being idle for(time in minutes)''.

The default setting of IIS6 is to shut down worker processes(web site/app
pool instances) if there is no new requests come in for 20 mins. In this
case, all the in-process sessions will be lost.


这篇关于会话变量会丢失所有用户的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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