ASP.NET为什么会话超时,超时的sessionState集 [英] ASP.NET Why are sessions timing out, sessionstate timeout set

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

问题描述

嘿,我有我的web.config以下行

Hey I have the following line in my web.config

<sessionState mode="InProc" timeout="45"/>

我本以为这会保持不变45分钟

Which I thought would keep sessions intact for 45 mins

不过,我已经看到了,如果用户是不活动的地方为让说15分钟的会话超时的情况。

But I have seen the case where if a user is inactive for lets say 15 mins the sessions times out.

如何才能停止呢?

编辑:只注意到我在母版页以下行

Edit : Just noticed I have the following line in the master page

META HTTP-当量=刷新内容=1800; URL = HTTP://www.virtualacademy.ie/login.aspx>

meta http-equiv="Refresh" content="1800;URL=http://www.virtualacademy.ie/login.aspx">

这也许是导致该问题,什么是上面一行做即数1800

Maybe this is causing the issue, what is the above line doing i.e the number 1800

推荐答案

如果用户关闭浏览器或清除cookie,或者如果在服务器上的应用程序域被回收,会话状态会丢失。

If the user closes their browser or clears cookies, or if the AppDomain on the server is recycled, the session state will be lost.

你检查日志,看看是否应用程序被回收?

Have you checked logs to see if the app is recycling?

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

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