Home | Advertising Info205 USERS CURRENTLY ONLINE   
   Site Search Contact Us Tuesday, February 20, 2018  

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


We didn't realize
the site was so popular.

Other Stuff

vbscript active server pages ASP vbscript SQL database informix oracle SQL Server Perl CGI Delphi PHP source code code sample samples program 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


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("WhoOn") = Application("WhoOn") + 1
End Sub

Sub Session_OnEnd
Application("WhoOn") = Application("WhoOn") - 1
End Sub

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!


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 - 2018 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 source code database MS SQL MS Access .mdb adovbs.inc cookies calendar codes sql commands scripts asp programming tutorials iis web server components 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