ASP Hosting sale!
Double disk space and transfer for FREE!
Limited time offer! Act Now!

aspdev | articles | tutorials | forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Is there a way to get the # of online users with ASP?

 
Post new topic   Reply to topic    ASPdev.org Forum Index -> ASP programming
View previous topic :: View next topic  
Author Message
jon



Joined: 01 Oct 2004
Posts: 40

PostPosted: Fri Oct 01, 2004 3:24 pm    Post subject: Is there a way to get the # of online users with ASP? Reply with quote

Is there a way to get the # of online users of my website using ASP?


Thanks,
Jon
Back to top
View user's profile Send private message
administrator
Site Admin


Joined: 01 Oct 2004
Posts: 183

PostPosted: Fri Oct 01, 2004 3:52 pm    Post subject: Reply with quote

Hi Jon,

Welcome to our forums!

You can define variable Application("OnlineUsers") in the global.asa in Application_OnStart. Then you'll have to increment this variable in Session_OnStart and decrement it in Session_OnEnd subroutines.
This variable will hold the # of online users and you can display it in your ASP pages.
_________________
Peter
ASP & ASP.NET Articles and Tutorials
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ASPdev.org Forum Index -> ASP programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group

SQL Tutorial