会话超时不起作用

编程入门 行业动态 更新时间:2024-10-28 08:26:54
本文介绍了会话超时不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

即使在 4.0中,web.config文件中的超时值为1440分钟,会话也会在20分钟内超时.

The session is being timed out within 20 min even the timeout value in web.config file is given as 1440 minutes in 4.0

推荐答案

使用ASP 进程内会话,总是有可能使您设置的会话超时值无法达到预期的效果. 要解决这两个用户外出会话(使用状态服务器/SQL服务器). If you are using ASP In-proc session, this is always possible that the session timeout value you set will not behave as expected. To solve this either user out-proc session (using State server/SQL server).

您还应该记住的另一件事是,该配置可以强制回收应用程序池.如果您有进行中的会话,则在回收与该应用程序关联的相应应用程序池时,它们将结束.这是有关此的一些信息: http ://www.microsoft/technet/prodtechnol/WindowsServer2003/Library/IIS/1eee28e2-b319-4b4e-8267-a8c0aa0dcf36.mspx?mfr = true [ ^ ].对于更多页面,只需使用Google应用程序池回收"即可. 干杯!
—MRB
Another thing you should keep in mind is that the configuration can force the application pool to be recycled. If you have In-Proc sessions they will be ended when the corresponding application pool associated with the application is recycled. Here is some info about that: www.microsoft/technet/prodtechnol/WindowsServer2003/Library/IIS/1eee28e2-b319-4b4e-8267-a8c0aa0dcf36.mspx?mfr=true[^]. For more pages just google "application pool recycling". Cheers!
—MRB

更多推荐

会话超时不起作用

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

发布评论

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

>www.elefans.com

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