会话过期问题 [英] Session Expire Problem

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

问题描述

我在5分钟内遇到会话过期的问题.
实际上,在web.config文件中,会话超时设置为540分钟,即使超时时间为5分钟.它正在杀了我,我没办法成为问题,我尝试了不同的方式工作,但问题仍未解决.


这是web.config
中的设置

I am facing a problem with session expire with in 5 min.
actually in web.config file the session time out is set to 540min, even it is expiring with in 5 min. it is killing me, i am not getting wat is the problm, i tried working in different ways but problem is not solved.


this is the setting in web.config


<sessionState timeout="540" mode="InProc" compressionEnabled="true" cookieless="UseCookies">
    </sessionState>

推荐答案

好吧,如果您的应用程序池在5分钟后被销毁,那么考虑到会话正在进行,那将是一个问题.将应用程序池的超时增加到540分钟.


--Amit
Well if your application pool is being destroyed after 5 minutes then that would be a problem considering your session is inproc. Increase the timeout of the application pool to be 540 minutes.


--Amit


转到IIS并在那里设置会话超时
Go to IIS and set Session timeout there as well


这篇关于会话过期问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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