会话在IIS 7中超时(Session Time out in IIS 7)

编程入门 行业动态 更新时间:2024-10-09 05:15:53
会话在IIS 7中超时(Session Time out in IIS 7)

我喜欢在IIS 7.0(Windows Server 2008)中托管asp.net Web应用程序。

我将会话状态配置为sessionstate mode =“inproc”timeout = 120。即使会话在15秒内过期。 可能是什么问题呢?。

谢谢

I like to host asp.net web application in IIS 7.0 (windows server 2008).

I configured session state as sessionstate mode="inproc" timeout = 120. Even the session expires within 15 seconds. What could be the problem?.

Thanks

最满意答案

检查Windows事件日志以确保工作进程不被强制回收。

在你的代码中可能有某些东西会导致工作进程强制自己重新执行,在这种情况下,当会话存储在inrocroc中时,它将失去它所持有的所有会话值。

Check the Windows Event Log to ensure that the Worker Process is not being forced to recyle.

There may be something in your code that causes the Worker Process to force itself to recyle in which case when the session is stored inProc it will loose all session values it's holding.

更多推荐

本文发布于:2023-07-30 16:18:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1338812.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:IIS   Session   Time

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!