经典 ASP 网站中的会话超时 [英] Session Timeout in Classic ASP website

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

问题描述

经典 ASP 在哪里存储会话超时值?我查看了代码,这个经典的 ASP 网站没有使用 Global.asa(所以没有Session_OnStart")或 Session.timeout=x.该网站托管在 IIS 7 上.在此网站的 IIS 上,在功能"视图中,双击ASP"-> 会话属性-> 启用会话设置为真",超时值设置为 20.问题是:虽然会话超时设置为 20 分钟.在 IIS 上,它在 5 分钟后超时.有没有其他方法/地方可以修改这个经典 ASP 网站的会话超时值?

Where does classic ASP store the value for session timeout? I have looked through the code and this classic ASP website isn't using Global.asa(so no "Session_OnStart") or Session.timeout=x. The website is hosted on IIS 7.On IIS for this website,in Features view,double-clicking on "ASP" -> Session Properties -> Enable session is set to 'True' and the Time-out value is set to 20. The problem is: though the session time-out is set to 20 mins. on IIS,it times out after 5 minutes. Is there any other way/place to modify the session timeout value for this classic ASP website?

有人可以帮我解决这个问题吗?

Can someone help me with this please?

我查看了应用程序池的设置.空闲超时为 20 分钟.和 Recycling->Regular Time Interval 设置为 1740.

I looked at the settings for the application pool.The Idle time-out is 20 mins. and Recycling->Regular Time Interval is set to 1740.

推荐答案

根据我的评论,您的回收设置需要如下图所示进行设置,以确保应用程序池不会被重置.

Following on from my comments, your Recycling settings need to be set like the following image to make sure the Application Pool will not be reset.

设置生成回收事件日志条目"也是值得的.这样您就可以看到哪些事件导致您的应用程序池重置.这样您就可以在事件查看器中对其进行监控.

It's also worth setting the "Generate Recycle Event log Entry" so you can see what events are causing your Application Pool to reset. That way you can monitor it in the Event Viewer.

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

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