Home | Advertising Info225 USERS CURRENTLY ONLINE   
   Site Search Contact Us Tuesday, July 25, 2017  

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.

Try a free httpZip trial now and compress for less!

We didn't realize
the site was so popular.

Other Stuff

PowerASP active server pages asp.net microsoft .net framework sdk learn asp what is asp tutorial learn asp.net CJWSoft ASPProtect ASPBanner ASPClassifieds

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


Subject: Re: How do I get a N0 of users on line like the one in the top corner?
From: Daniel_M
Date: 9/6/2000 1:31:42 PM


Here is the code that I use.

Put this where you want the number of users displayed:
<%= Application("ActiveUsers") %>

Put this code in your GLOBAL.ASA file:

Sub Application_OnStart
Set our user count to 0 when we start the server
Application("ActiveUsers") = 0
End Sub

Sub Session_OnStart
Change Session Timeout to 20 minutes (if you need to)
Session.Timeout = 20
Set a Session Start Time
This is only important to assure we start a session
Session("Start") = Now
Increase the active visitors count when we start the session
Application("ActiveUsers") = Application("ActiveUsers") + 1
End Sub

Sub Session_OnEnd
Decrease the active visitors count when the session ends.
Application("ActiveUsers") = Application("ActiveUsers") - 1
End Sub


Previous Message


   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright 1998 - 2017 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 a directory of ASP tutorials applications scripts components and articles for the novice to professional developer. 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