|
|
|
|
|
| | |
|
Active Server Pages ASP ASP.NET .aspx .ascx Web HTML Developer Internet Microsoft Web Services Visual Studio .NET CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
global.asa problem in W2K/IIS5 |
From: |
Anthony |
Date: |
4/21/2001 9:40:51 PM |
IP: |
24.4.255.47 |
I'm having a problem displaying the number of active users on an ASP page running on Win2000/IIS5. I have the following global.asa that works on NT4/IIS4, but will not increment the number on-line on Win2000/IIS5:
global.asa file:
<script language=VBScript runat=Server>
Sub Application_OnStart
Application("WhoOn") = 0
End Sub
Sub Application_OnEnd
'---nothing here
End Sub
Sub Session_OnStart
Session.Timeout = 20
'---lock Application variable before updating
Application.Lock
Application("WhoOn") = Application("WhoOn") + 1
Application.Unlock
End Sub
Sub Session_OnEnd
Application.Lock
Application("WhoOn") = Application("WhoOn") - 1
Application.Unlock
End Sub
</script>
Script on page to display:
<%=Application("WhoOn")%> on-line now!
Is there anyone that can recommend what I should modify here, or possibly on the server for this to work? I've tried this script on 2 Win2000/IIS5 servers thus far, and still no cigar. Thanks for any suggestions!
Anthony |
Follow Up - Re: global.asa problem in W2K/IIS5 - Chris Williams 4/22/2001 11:40:16 AM
|
|

|
|
|
|
|
|
|
|
|
|