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

Explain the different types of memory used by jvm?

597


What are various types of class loaders used by jvm?

489


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

547


Why are component architectures useful?

564


What is the purpose of the notify() method?

588






How will you pass parameters in RMI? Why do you serialize?

683


What is an abstract method?

585


int x=5,i=1,y=0; while(i<=5) { y=x++ + ++x; i=i+2; } System.out.println(x); System.out.println(y); System.out.println(i); How to solve this? Please explain!

1356


Difference between loadclass and class.forname?

583


What are callback interfaces?

584


What is colon_pkg_prefixes and what is its use?

1990


What modifiers may be used with an interface declaration?

548


What is the purpose of the wait(), notify(), and notifyall() methods?

559


What is glasgow?

572


Which are the different segments of memory?

585