会议永远不会结束(再次) - 请帮助 [英] Sessions never end (again) - Please help

查看:61
本文介绍了会议永远不会结束(再次) - 请帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个转贴(粘贴在下面)。从我原来的帖子开始,我已经检查了系统时钟并将所有IIS会话超时值设置为10

分钟。仍然......问题出现了。我还安装了Deep Metrix Live

Stats 6.2 XPS只是为了确保没有什么奇怪的事情发生在

上。仍然....会议只增加...或者我应该在我的asax文件中说我的柜台

....并且永远不会下降。


如果重要,这台机器托管3个站点,它有一个IP

地址。我已将IIS 5设置为查看主机标头并重定向到

" site"就自己而言。这是每天都做的,我不可能看到这个

会如何影响Sessions,但你永远不会知道。


我完全被难倒了!想法?....

*****************


我正在使用ASP( .NET)技巧以显示当前用户的数量。在我的网站之一

http:// www。 drpt.virginia.gov)。我在我的网站上使用这个方法,但似乎只有这一个(在这台机器上)给我带来了麻烦。

麻烦似乎是会话根本就没有结束所以我的Sub

Session_OnEnd中的代码永远不会被触发。根据我的理解,会话将在20分钟后到期
但是如果

请求者没有进一步的活动则默认。然而,我的计数器似乎永远不会减少......只是递增。我的

代码在下面,我不认为这是代码(ASP)问题...这是一个常见的

技巧,这个确切的代码工作正常在其他网站上。我认为这是一台问题

这台机器。谁能帮忙或告诉我要检查什么?


谢谢!!


我的global.asax文件:


''****************************************** ******* **


Sub Application_OnStart


申请表(" URLSeed")=" http:// www .drpt.virginia.gov /"

申请表(" CurrentSessions")= 0

申请表(TotalSessions)= 0

End Sub


''***************************** ******************** *


Sub Application_OnEnd


申请表(" ; URLSeed")= Nothing


End Sub


''**************** ********************************* *


Sub Session_OnStart


''====================================== ======

''=====更新当前会话====================

''============================================

Applicati on.Lock


应用程序(TotalSessions)= CInt(应用程序(TotalSessions))+ 1

应用程序(CurrentSessions) = CInt(应用程序(CurrentSessions))+ 1


Application.Unlock


End Sub


''******************************************** ***** *


Sub Session_OnEnd


Application.Lock


申请表(" ; CurrentSessions")= CInt(应用程序(CurrentSessions)) - 1


Application.Unlock


''杀死用户''会话变量

Session.Abandon()


结束子

''********** *************************************** **


This is a repost (pasted below). Since my original post, I''ve double
checked the system clock and set all IIS Session Timeout values to 10
minutes. Still ...the problem occurs. I''ve also installed Deep Metrix Live
Stats 6.2 XPS just to make sure nothing really strange was going on was
going on. Still....the sessions only increment...or should I say my counter
in my asax file.... and never goes down.

If it matters, this machine is hosting 3 sites and it has a single IP
address. I''ve set IIS 5 to look at the host headers and redirect to the
"site" on itself. This is done every day and I can''t possibly see how this
would effect the Sessions but you never know.

I''m totally stumped!! Thoughts?....
*****************

I''m using ASP(.NET) trickery to show the number of "current users" on one of
my web sites (http://www.drpt.virginia.gov). I use this method on a few of
my sites but it seems that only this one (on this machine) gives me trouble.
The trouble seems that the sessions simply never end so the code in my Sub
Session_OnEnd is never fired. As I understand it, sessions will expire
after 20 minutes but default if there is no further activity from the
requestor. Yet, my counter never seems to decrement....only increment. My
code is below and I don''t think it''s a code (ASP) issue...this is a common
trick and this exact code works fine on other sites. I think it''s an issue
with this one machine. Can anyone help or tell me what to check??

Thanks!!

My global.asax file:

''************************************************* **

Sub Application_OnStart

Application("URLSeed") = "http://www.drpt.virginia.gov/"
Application("CurrentSessions") = 0
Application("TotalSessions") = 0

End Sub

''************************************************* *

Sub Application_OnEnd

Application("URLSeed") = Nothing

End Sub

''************************************************* *

Sub Session_OnStart

''============================================
''===== Updating Current Sessions ====================
''============================================
Application.Lock

Application("TotalSessions") = CInt(Application("TotalSessions")) + 1
Application("CurrentSessions") = CInt(Application("CurrentSessions")) + 1

Application.Unlock

End Sub

''************************************************* *

Sub Session_OnEnd

Application.Lock

Application("CurrentSessions") = CInt(Application("CurrentSessions")) - 1

Application.Unlock

''Killing user''s session variables
Session.Abandon()

End Sub
''************************************************* **


推荐答案

我假设您正在使用InProc会话状态模式?


-

- Paul Glavich

Microsoft MVP - ASP.NET

" D. Shane Fowlkes < SH ********** @ h-o-t-m-a-i-l.com>在消息中写道

新闻:OJ ************** @ TK2MSFTNGP11.phx.gbl ...
I assume you are using InProc session state mode?

--
- Paul Glavich
Microsoft MVP - ASP.NET
"D. Shane Fowlkes" <sh**********@h-o-t-m-a-i-l.com> wrote in message
news:OJ**************@TK2MSFTNGP11.phx.gbl...
这是一个转贴(贴在下面)。从我原来的帖子开始,我已经检查了系统时钟并将所有IIS Session Timeout值设置为10
分钟。仍然......问题出现了。我还安装了Deep Metrix
Live Stats 6.2 XPS,以确保没有什么奇怪的事情发生了
。仍然....会话只会增加...或者我应该在我的asax文件中说我的
计数器....并且永远不会失败。

如果重要,这台机器是托管3个站点,它有一个IP地址。我已将IIS 5设置为查看主机标头并重定向到
site。就自己而言。这是每天都做的,我不可能看到这将影响Sessions的
但是你永远都不会知道。

我完全难过!想法?....

*****************

我正在使用ASP(.NET)技巧显示当前用户的数量在我的网站上一个
http://www.drpt.virginia。 GOV)。我在我的网站的几个
上使用这种方法,但似乎只有这一个(在这台机器上)给我
麻烦。问题似乎是会话永远不会结束所以我的Sub
Session_OnEnd中的代码永远不会被触发。据我了解,会议将在20分钟后到期,但如果
请求者没有进一步的活动,则会默认。然而,我的计数器似乎永远不会减少......只是递增。我的
代码在下面,我不认为这是一个代码(ASP)问题...这是一个常见的技巧,这个确切的代码在其他网站上运行正常。我认为这台机器的价格是b
。谁能帮忙或者告诉我要检查什么?

谢谢!!

我的global.asax文件:

''**** ********************************************* **
Sub Application_OnStart

申请表(" URLSeed")=" http://www.drpt.virginia.gov/"
申请表(" CurrentSessions") = 0
申请(TotalSessions)= 0

结束子

''*************** ******************************************************************************************************************************************************************************************************************************应用程序(URLSeed)=没有什么

End Sub

''****************** *********************************** *

Sub Session_OnStart

''============================================
''=====更新当前会话====================
''============== ==============================
Application.Lock

应用程序(" TotalSessions" ;)= CInt(应用程序(TotalSessions ))+ 1
应用程序(CurrentSessions)= CInt(应用程序(CurrentSessions))+
1
Application.Unlock

结束子

''*************************************** ********** *

Sub Session_OnEnd

Application.Lock

应用程序(CurrentSessions)= CInt(应用程序(CurrentSessions)) -
1
Application.Unlock

''杀死用户的会话变量
Session.Abandon()

结束子
''************************************* ************ **
This is a repost (pasted below). Since my original post, I''ve double
checked the system clock and set all IIS Session Timeout values to 10
minutes. Still ...the problem occurs. I''ve also installed Deep Metrix Live Stats 6.2 XPS just to make sure nothing really strange was going on was
going on. Still....the sessions only increment...or should I say my counter in my asax file.... and never goes down.

If it matters, this machine is hosting 3 sites and it has a single IP
address. I''ve set IIS 5 to look at the host headers and redirect to the
"site" on itself. This is done every day and I can''t possibly see how this would effect the Sessions but you never know.

I''m totally stumped!! Thoughts?....
*****************

I''m using ASP(.NET) trickery to show the number of "current users" on one of my web sites (http://www.drpt.virginia.gov). I use this method on a few of my sites but it seems that only this one (on this machine) gives me trouble. The trouble seems that the sessions simply never end so the code in my Sub
Session_OnEnd is never fired. As I understand it, sessions will expire
after 20 minutes but default if there is no further activity from the
requestor. Yet, my counter never seems to decrement....only increment. My
code is below and I don''t think it''s a code (ASP) issue...this is a common
trick and this exact code works fine on other sites. I think it''s an issue with this one machine. Can anyone help or tell me what to check??

Thanks!!

My global.asax file:

''************************************************* **

Sub Application_OnStart

Application("URLSeed") = "http://www.drpt.virginia.gov/"
Application("CurrentSessions") = 0
Application("TotalSessions") = 0

End Sub

''************************************************* *

Sub Application_OnEnd

Application("URLSeed") = Nothing

End Sub

''************************************************* *

Sub Session_OnStart

''============================================
''===== Updating Current Sessions ====================
''============================================
Application.Lock

Application("TotalSessions") = CInt(Application("TotalSessions")) + 1
Application("CurrentSessions") = CInt(Application("CurrentSessions")) + 1
Application.Unlock

End Sub

''************************************************* *

Sub Session_OnEnd

Application.Lock

Application("CurrentSessions") = CInt(Application("CurrentSessions")) - 1
Application.Unlock

''Killing user''s session variables
Session.Abandon()

End Sub
''************************************************* **



如果您尝试使用Session_End怎么办?


我也会开始把那里的其他东西看得更好或者不是它的价格是b

$ br $> b $ b -


" D. Shane Fowlkes < SH ********** @ h-o-t-m-a-i-l.com> écritdansle message

de news:OJ ************** @ TK2MSFTNGP11.phx.gbl ...
What if you try Session_End instead ?

Also I would start bu putting there something else to see wether or not it''s
excuted...

Patrice
--

"D. Shane Fowlkes" <sh**********@h-o-t-m-a-i-l.com> a écrit dans le message
de news:OJ**************@TK2MSFTNGP11.phx.gbl...
这是转贴(粘贴在下面)。从我原来的帖子开始,我已经检查了系统时钟并将所有IIS Session Timeout值设置为10
分钟。仍然......问题出现了。我还安装了Deep Metrix
Live Stats 6.2 XPS,以确保没有什么奇怪的事情发生了
。仍然....会话只会增加...或者我应该在我的asax文件中说我的
计数器....并且永远不会失败。

如果重要,这台机器是托管3个站点,它有一个IP地址。我已将IIS 5设置为查看主机标头并重定向到
site。就自己而言。这是每天都做的,我不可能看到这将影响Sessions的
但是你永远都不会知道。

我完全难过!想法?....

*****************

我正在使用ASP(.NET)技巧显示当前用户的数量在我的网站上一个
http://www.drpt.virginia。 GOV)。我在我的网站的几个
上使用这种方法,但似乎只有这一个(在这台机器上)给我
麻烦。问题似乎是会话永远不会结束所以我的Sub
Session_OnEnd中的代码永远不会被触发。据我了解,会议将在20分钟后到期,但如果
请求者没有进一步的活动,则会默认。然而,我的计数器似乎永远不会减少......只是递增。我的
代码在下面,我不认为这是一个代码(ASP)问题...这是一个常见的技巧,这个确切的代码在其他网站上运行正常。我认为这台机器的价格是b
。谁能帮忙或者告诉我要检查什么?

谢谢!!

我的global.asax文件:

''**** ********************************************* **
Sub Application_OnStart

申请表(" URLSeed")=" http://www.drpt.virginia.gov/"
申请表(" CurrentSessions") = 0
申请(TotalSessions)= 0

结束子

''*************** ******************************************************************************************************************************************************************************************************************************应用程序(URLSeed)=没有什么

End Sub

''****************** *********************************** *

Sub Session_OnStart

''============================================
''=====更新当前会话====================
''============== ==============================
Application.Lock

应用程序(" TotalSessions" ;)= CInt(应用程序(TotalSessions ))+ 1
应用程序(CurrentSessions)= CInt(应用程序(CurrentSessions))+
1
Application.Unlock

结束子

''*************************************** ********** *

Sub Session_OnEnd

Application.Lock

应用程序(CurrentSessions)= CInt(应用程序(CurrentSessions)) -
1
Application.Unlock

''杀死用户的会话变量
Session.Abandon()

结束子
''************************************* ************ **
This is a repost (pasted below). Since my original post, I''ve double
checked the system clock and set all IIS Session Timeout values to 10
minutes. Still ...the problem occurs. I''ve also installed Deep Metrix Live Stats 6.2 XPS just to make sure nothing really strange was going on was
going on. Still....the sessions only increment...or should I say my counter in my asax file.... and never goes down.

If it matters, this machine is hosting 3 sites and it has a single IP
address. I''ve set IIS 5 to look at the host headers and redirect to the
"site" on itself. This is done every day and I can''t possibly see how this would effect the Sessions but you never know.

I''m totally stumped!! Thoughts?....
*****************

I''m using ASP(.NET) trickery to show the number of "current users" on one of my web sites (http://www.drpt.virginia.gov). I use this method on a few of my sites but it seems that only this one (on this machine) gives me trouble. The trouble seems that the sessions simply never end so the code in my Sub
Session_OnEnd is never fired. As I understand it, sessions will expire
after 20 minutes but default if there is no further activity from the
requestor. Yet, my counter never seems to decrement....only increment. My
code is below and I don''t think it''s a code (ASP) issue...this is a common
trick and this exact code works fine on other sites. I think it''s an issue with this one machine. Can anyone help or tell me what to check??

Thanks!!

My global.asax file:

''************************************************* **

Sub Application_OnStart

Application("URLSeed") = "http://www.drpt.virginia.gov/"
Application("CurrentSessions") = 0
Application("TotalSessions") = 0

End Sub

''************************************************* *

Sub Application_OnEnd

Application("URLSeed") = Nothing

End Sub

''************************************************* *

Sub Session_OnStart

''============================================
''===== Updating Current Sessions ====================
''============================================
Application.Lock

Application("TotalSessions") = CInt(Application("TotalSessions")) + 1
Application("CurrentSessions") = CInt(Application("CurrentSessions")) + 1
Application.Unlock

End Sub

''************************************************* *

Sub Session_OnEnd

Application.Lock

Application("CurrentSessions") = CInt(Application("CurrentSessions")) - 1
Application.Unlock

''Killing user''s session variables
Session.Abandon()

End Sub
''************************************************* **



不确定。你能澄清一下吗?谢谢

" Paul Glavich [MVP - ASP.NET]" < GL ** @ aspalliance.com-NOSPAM>写在

消息新闻:eb ************* @tk2msftngp13.phx.gbl ...
Not sure. Can you clarify a little? Thanks
"Paul Glavich [MVP - ASP.NET]" <gl**@aspalliance.com-NOSPAM> wrote in
message news:eb*************@tk2msftngp13.phx.gbl...
我假设您正在使用InProc会话状态模式?

- Paul Glavich
Microsoft MVP - ASP.NET

" D. Shane Fowlkes < SH ********** @ h-o-t-m-a-i-l.com>在消息中写道
新闻:OJ ************** @ TK2MSFTNGP11.phx.gbl ...
I assume you are using InProc session state mode?

--
- Paul Glavich
Microsoft MVP - ASP.NET
"D. Shane Fowlkes" <sh**********@h-o-t-m-a-i-l.com> wrote in message
news:OJ**************@TK2MSFTNGP11.phx.gbl...
这是一个转贴(粘贴在下面)。从我原来的帖子开始,我已经检查了系统时钟并将所有IIS Session Timeout值设置为10
分钟。仍然......问题出现了。我还安装了Deep Metrix Live
This is a repost (pasted below). Since my original post, I''ve double
checked the system clock and set all IIS Session Timeout values to 10
minutes. Still ...the problem occurs. I''ve also installed Deep Metrix Live
Stats 6.2 XPS只是为了确保没有什么奇怪的事情发生了
。仍然....会话只会增加...或者我应该在我的asax文件中说出我的
Stats 6.2 XPS just to make sure nothing really strange was going on was
going on. Still....the sessions only increment...or should I say my


计数器

....并且永远不会失败。

如果重要,这台机器托管3个站点,它有一个IP地址。我已将IIS 5设置为查看主机标头并重定向到
site。就自己而言。这是每天都做的,我不可能看到
in my asax file.... and never goes down.

If it matters, this machine is hosting 3 sites and it has a single IP
address. I''ve set IIS 5 to look at the host headers and redirect to the
"site" on itself. This is done every day and I can''t possibly see how


这个

会影响Sessions,但你永远不会知道。

我'真是难倒!想法?....

*****************

我正在使用ASP(.NET)技巧显示当前用户的数量在
would effect the Sessions but you never know.

I''m totally stumped!! Thoughts?....
*****************

I''m using ASP(.NET) trickery to show the number of "current users" on one of
我的网站之一( http: //www.drpt.virginia.gov)。我在
我的网站上使用了这个方法,但似乎只有这个(在这台机器上)给了我
my sites but it seems that only this one (on this machine) gives me


麻烦。

问题似乎是会话根本就没有结束所以我的
The trouble seems that the sessions simply never end so the code in my



Sub Session_OnEnd中的代码永远不会被触发。据我了解,会议将在20分钟后到期,但如果
请求者没有进一步的活动,则会默认。然而,我的计数器似乎永远不会减少......只是递增。
我的代码在下面,我不认为这是一个代码(ASP)问题...这是一个
的常用技巧,这个确切的代码在其他网站上运行正常。我认为这是一台


Sub Session_OnEnd is never fired. As I understand it, sessions will expire
after 20 minutes but default if there is no further activity from the
requestor. Yet, my counter never seems to decrement....only increment. My code is below and I don''t think it''s a code (ASP) issue...this is a common trick and this exact code works fine on other sites. I think it''s an


问题

这台机器。谁能帮忙或者告诉我要检查什么?

谢谢!!

我的global.asax文件:

''**** ********************************************* **
Sub Application_OnStart

申请表(" URLSeed")=" http://www.drpt.virginia.gov/"
申请表(" CurrentSessions") = 0
申请(TotalSessions)= 0

结束子

''*************** ******************************************************************************************************************************************************************************************************************************应用程序(URLSeed)=没有什么

End Sub

''****************** *********************************** *

Sub Session_OnStart

''============================================
''=====更新当前会话====================
''============== ==============================
Application.Lock

应用程序(" TotalSessions" ;)= CInt(应用程序(TotalSessions ))+ 1
应用程序(CurrentSessions)= CInt(应用程序(CurrentSessions))
with this one machine. Can anyone help or tell me what to check??

Thanks!!

My global.asax file:

''************************************************* **

Sub Application_OnStart

Application("URLSeed") = "http://www.drpt.virginia.gov/"
Application("CurrentSessions") = 0
Application("TotalSessions") = 0

End Sub

''************************************************* *

Sub Application_OnEnd

Application("URLSeed") = Nothing

End Sub

''************************************************* *

Sub Session_OnStart

''============================================
''===== Updating Current Sessions ====================
''============================================
Application.Lock

Application("TotalSessions") = CInt(Application("TotalSessions")) + 1
Application("CurrentSessions") = CInt(Application("CurrentSessions"))



+ 1


+ 1


Application.Unlock

结束子

''******************* ********************************************************************************************************************************************************************************************************************************************** .Lock

应用程序(" CurrentSessions")=

Application.Unlock

End Sub

''************************************************* *

Sub Session_OnEnd

Application.Lock

Application("CurrentSessions") =


CInt(应用程序(" CurrentSessions)) - 1

CInt(Application("CurrentSessions")) - 1


Application.Unlock

''杀死用户'的会话变量
Session.Abandon()

结束子
''***** ******************************************** **

Application.Unlock

''Killing user''s session variables
Session.Abandon()

End Sub
''************************************************* **




这篇关于会议永远不会结束(再次) - 请帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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