Sign In | Register Now About Bytes | Help | Site Map
Connecting Tech Pros Worldwide

Counting online user - w/o global.asa

Question posted by: thesti (Member) on May 10th, 2008 04:51 PM
hi,

how to count the number of online user in a website?
i know how to count online user using the global.asa .

for some reasons. if there exists, i prefer another way that doesn't involve creating a global.asa configuration.

thanks in advance
thesti's Avatar
thesti
Member
74 Posts
May 12th, 2008
02:32 PM
#2

Re: Counting online user - w/o global.asa
if i choose to use the global.asa way.

what happen if the user close the browser, does the Sub Session_OnEnd will still be run, and the application("users") variable will be decremented ?

thanks in advance.

Reply
DrBunchman's Avatar
DrBunchman
Moderator
849 Posts
May 12th, 2008
03:19 PM
#3

Re: Counting online user - w/o global.asa
Hi thesti,

Yes, if the user closes the browser by clicking the cross or using Alt-F4 the Session_OnEnd event will fire.

I'm sorry but I don't know any other way of counting the number of current users although that doesn't mean that there isn't one.

Is there a particular reason why you didn't want to use the Global.asa method?

Dr B

Reply
Reply
Not the answer you were looking for? Post your question . . .
189,919 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
Top ASP Forum Contributors