Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

I wantr to know, How many number of users logged in to
website? can any one answer

Answer Posted / anket dhulekar

Use listeners. Since you want to to know how many users have
logged in, so the login info would be stored in a session.
You can create a filter by extending HttpSessionListener,
and update a static variable when the session is created.

The value of this variable will store the number of users
currently logged on.

Is This Answer Correct ?    18 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why are my checkboxes not being set from on to off?

1099


Why are some of the class and element names counter-intuitive?

1081


Can I use javascript to submit a form?

1117


When is the best time to validate input?

1071


How many times may an objects finalize() method be invoked by the garbage collector?

1059


Write a singleton program?

1008


what is meant by JRMP?

2287


Why won’t the jvm terminate when I close all the application windows?

1205


How database connectivity in XML is achieved?

2202


In RMI, inorder to sent the stub reference to the client, is we have to load the server object first into the memory or can we directly sent reference to the client?

2070


Whats new with the stop(), suspend() and resume() methods in jdk 1.2?

1013


What are the purpose of introspection?

1177


How would you reatach detached objects to a session when the same object has already been loaded into the session?

1162


What is jboss?

996


If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?

2183