IIS 7经典ASP会话的网站,网站的子目录,里面的网页应用程序 [英] IIS 7 Classic ASP session for website, website subdirectory, application inside website

查看:310
本文介绍了IIS 7经典ASP会话的网站,网站的子目录,里面的网页应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

环保:赢服务器2008 R2,IIS 7.5

Environment: Win server 2008 R2, IIS 7.5

网站

MainWebsite

MainWebsite

MainWebsite \\子目录

MainWebsite\Subdirectory

MainWebsite \\ VirtualDirectory

MainWebsite\VirtualDirectory

有关MainWebsite 的 - ASP - >(会话属性) - >超时 - > 00:04:00

For MainWebsite - ASP -> (Session Properties) -> Time-Out -> 00:04:00

有关MainWebsite \\子目录的 - > ASP - >(会话属性) - >超时 - > 00:08:00

For MainWebsite\Subdirectory -> ASP -> (Session Properties) -> Time-Out -> 00:08:00

程序池的 - >(过程模型) - >空闲超时(分钟) - > 10我将它设置至10分钟便可]

AppPool -> (Process Model) -> Idle Time-Out (minutes) -> 10 [I set it to 10 minute]

要求

我要MainWebsite举行会议4分钟。

I want the MainWebsite to hold the session for 4 minutes.

我要MainWebsite \\子目录举行会议8分钟。

I want the MainWebsite\Subdirectory to hold the session for 8 minutes.

以上配置是怎样的一个很小的测试我做的,所以我可以用20 mintues或我真正督促环境30 mintues替代超时值。

问题是,会话超时设置为Mainwebsite \\子目录是无效的。
尽管它被设定为8分钟,在会话每4分钟,中,把4分钟是MainWebsite的设置后丢失。

The issue is, the Session time out setting for the "Mainwebsite\subdirectory" is not effective. Though it is set to 8 minutes, the session is lost after every 4 minutes, where 4 minutes is the setting of the MainWebsite.

这是预期的行为,那么我不明白为什么有对子目录级别配置ASP会话超时选项。

Is this the expected behaviour, then I dont understand why there is an option to configure the ASP Session Timeout on a subdirectory level.

让我知道如果你需要更多的信息。鸭preciate您的意见。

Let me know if you need more information. Appreciate your comments.

推荐答案

由于这是正在做的IIS它确实意义它是如何工作的。您超时了整个网站,包括子目录中的子目录后超时。你可以设置它的原因是,如果你想一次走出主水平之前子目录。我会建议使用ASP code超时会话。所以它在每个会话的全球范围内做,你可以将它设置在你的Global.asa。

Since this is being done in IIS it does make sense how it's working. Your timing out the whole site including the subdirectories before the subdirectory is timed out. The reason you can set it is if you want to time out the sub directory before the main level. I would recommend using asp code to timeout the session. You can set it in your global.asa so it's done at the global level for each session.

<%
Session.Timeout = 40
%>

,其中40 =分钟数。

where 40 = the number of minutes.

参考: HTTP://classicasp.aspfaq。 COM /普通/怎么办-I-增加超时-values​​.html

这篇关于IIS 7经典ASP会话的网站,网站的子目录,里面的网页应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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