A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Feb 04, 2005
Mar 01, 2005 23:51:00
if i want to know the of users using the site ,
ex:when we login to yahoo it should be display the no of users using these site is like 10000 and when we logout it should display the no of users are
how to write the code?
Joined: Aug 15, 2004
Mar 02, 2005 02:41:00
Put the count in application context and increment it by 1 on every login. Use HttpSessionListener to detect logout.
Joined: Feb 05, 2001
Mar 02, 2005 09:14:00
I'm confused, your thread title is "JSP" but you are asking how to get the number of current users.
If this is strictly a
question, we have a JSP forum for JSP questions, whereas this forum is for
If this is about number of users, then change your thread topic to match it soo when we see a list of the threads in this forum we know what this thread is going to be about.
Perfect World Programming, LLC
Two Laptop Bag
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
Displaying time inside a table cell
This weeks giveaway
Can I change my Last Name?
Anonymous user tracking
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015