Home | Advertising Info60 USERS CURRENTLY ONLINE   
   Site Search Contact Us Saturday, July 26, 2014  
 
 


 
ASPProtect
User Management Application with web based screens that allow you to manage users.
www.ASPProtect.com
 
ASPBanner
Banner Rotation system. Advertisers can monitor online statistical reports via their web browsers.
www.ASPBanner.com
 
ASP Photo Gallery
Upload an unlimited amount of albums. Set up categories.Image resizing thumbnail creation.
www.ASPPhotoGallery.com
 
ASPClassifieds
Classifieds system. Set up categories. Users can register themselves. Supports picture uploads.
www.ASPClassifieds.com



DISCUSSION ARCHIVES
 
Try a free httpZip trial now and compress for less!


We didn't realize
the site was so popular.

Other Stuff
 

 
 
Active Server Pages help tutorial how to ASP Help ASP Tutorials ASP Programming ASP Code - ASP Free CJWSoft ASPProtect ASPBanner ASPClassifieds



(Advanced)  (Components)  (Database)  (General)  (Vbscript)




ASPProtect

 
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


 

   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright 1998 - 2014 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

Active Server Pages ASP ASP.NET .aspx .ascx Web HTML Developer Internet Microsoft Web Services Visual Studio .NET CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspclassifieds.com, www.powerasp.com,www.cjwsoft.com,www.aspphotogallery.com,www.codewanker.com,www.aspprotect.com,www.aspbanner.com