For Programmers: Free Programming Magazines  


Home > Archive > ASP > May 2006 > No of users ?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author No of users ?
PW

2006-05-27, 7:55 am


Hi,

I'm hosting a couple of ASP applications on my server. How can I tell the
number of users currently logged on, and can I get any details about them ?

Thanks,
PW



Egbert Nierop \(MVP for IIS\)

2006-05-27, 6:55 pm


"PW" <pwaNO@SPAMbigpond.net.au> wrote in message
news:%23e$emjYgGHA.1324@TK2MSFTNGP04.phx.gbl...
>
> Hi,
>
> I'm hosting a couple of ASP applications on my server. How can I tell the
> number of users currently logged on, and can I get any details about them
> ?


Depends on how you authenticate. Do you have them anonymously access the
site? Or do you use a database login? Or do you use clear text
authentication?

--
compatible web farm Session replacement for Asp and Asp.Net
http://www.nieropwebconsult.nl/asp_session_manager.htm

Bob Barrows [MVP]

2006-05-27, 6:55 pm

PW wrote:
> Hi,
>
> I'm hosting a couple of ASP applications on my server. How can I
> tell the number of users currently logged on, and can I get any
> details about them ?
> Thanks,
> PW

http://www.aspfaq.com/show.asp?id=2491
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


vicky

2006-05-27, 6:55 pm

Hi,

You can keep track of your users by creating an application level
variable and incrementing it whenever a user calls the page.Get user's
session id and check for it when the page is called, if its different
then increment the variable's value. then you can keep that value in a
text file or in database.

Its so simple. right :)

Bob Barrows [MVP]

2006-05-27, 6:55 pm

vicky wrote:
> Hi,
>
> You can keep track of your users by creating an application level
> variable and incrementing it whenever a user calls the page.Get user's
> session id and check for it when the page is called, if its different
> then increment the variable's value. then you can keep that value in a
> text file or in database.
>
> Its so simple. right :)


wrong

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


Bob Barrows [MVP]

2006-05-27, 6:55 pm

Bob Barrows [MVP] wrote:
> vicky wrote:
>
> wrong

Oops, forgot to add the smiley
:-)

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


vicky

2006-05-29, 3:56 am

Hi Bob,

Can you tell me why is it wrong???

Vicky

:-)

Dave Anderson

2006-05-29, 7:56 am

vicky wrote:
> Can you tell me why is it wrong???


Because sessions are stateless.

Since they are stateless, you have no idea when a user leaves the site, so
there is no realistic way to ACCURATELY measure the number of users
"currently logged in".




--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.


Bob Barrows [MVP]

2006-05-29, 7:56 am

vicky wrote:
> Hi Bob,
>
> Can you tell me why is it wrong???
>
> Vicky
>
> :-)


The article I cited in my first reply explains it. Dave did it in fewer
words, but that's the point that makes it harder than simply storing the
data in application.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com