会话超时问题 [英] Session Time out problem

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

问题描述

尊敬所有
我主持的云服务器上的网站,我已经加入
的sessionState模式=是InProc超时=1440/>
的web.config 文件。但会议被在1-2分钟超时。
我认为web.config设置应覆盖IIS settings.But它不工作。是否有解决方案吗?

Dear All I have a website hosted on the cloud server and I have added sessionState mode ="InProc" timeout="1440" /> in the web.config file. But the session gets timed out in 1-2 minutes. I think the web.config settings should override the IIS settings.But it's not working. Is there solution for this?

在此先感谢

Anoop乔治·托马斯

Anoop George Thomas

推荐答案

使用InProc方式(内存)会话状态,如果有以下情况发生,你将失去会话:

With InProc (in-memory) session state, you will lose session if any of the following conditions occur:


  • IIS工作进程重新启动

  • 用户转移到另一个工作进程在同一个网络服务器,或者另一个网站服务器

  • 重新启动IIS

我想确认你没有看到在IIS上任何奇怪的重新启动行为,或者,如果你在你的云环境中蹦跳着。

I would verify that you are not seeing any strange restart behavior on IIS, or if you are bouncing around in your cloud environment.

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

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