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 use POJO when I can use hashmap

2719


For which statements does it make sense to use a label?

1140


What is TL and its use?

2549


how to make a index.jsp for running the site in internet and find an error for connection with weblogic server and java that give an error invalid object name.and how to maintain session.

2289


Write a singleton program?

1111


What’s jboss jbpm?

1090


Which containers use a border layout as their default layout?

1208


What is table mutation and how do you avoid it?

2531


What do you need to set-up a cluster with jboss?

1129


Explain the difference between object state and behavior?

1117


What is the purpose of the finally clause of a try-catch-finally statement?

1080


What is a tasks priority and how is it used in scheduling?

1114


What are the different class loaders used by jvm?

1154


Why is actionform a base class rather than an interface?

1117


Can I run seam with jdk 1.4 and earlier?

1053