Groups | Blog | Home
all groups > inetserver asp general > may 2006 >

inetserver asp general : No of users ?


vicky
5/27/2006 9:19:26 AM
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]
5/27/2006 11:59:56 AM
[quoted text, click to view]
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"

Bob Barrows [MVP]
5/27/2006 2:19:13 PM
[quoted text, click to view]

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]
5/27/2006 2:27:58 PM
[quoted text, click to view]
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"

Egbert Nierop (MVP for IIS)
5/27/2006 5:04:45 PM

[quoted text, click to view]

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
PW
5/27/2006 8:27:20 PM

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


vicky
5/29/2006 1:41:31 AM
Hi Bob,

Can you tell me why is it wrong???

Vicky

:-)
Dave Anderson
5/29/2006 8:08:53 AM
[quoted text, click to view]

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]
5/29/2006 9:36:11 AM
[quoted text, click to view]

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"

AddThis Social Bookmark Button