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

What are the different class loaders used by jvm?

1051


What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?

987


What is the purpose of the wait() method?

1110


What are the pros and cons of detached objects?

934


What is ioc concept & explain it?

1041


How substring() method of string class create memory leaks?

993


What is synchronization and why is it important?

1041


Java is fully object oriented languages or not?

947


what is a non-repeatable read?

2324


What are callback interfaces?

1055


Is it possible to stop the execution of a method before completion in a sessionbean?

1031


Describe, in general, how java's garbage collector works?

988


Is infobus easy to use?

991


Explain the steps in details to load the server object dynamically?

5066


What is local interface. How values will be passed?

985