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
Explain the different types of memory used by jvm?
What are various types of class loaders used by jvm?
What is the purpose of the finally clause of a try-catch-finally statement?
Why are component architectures useful?
What is the purpose of the notify() method?
How will you pass parameters in RMI? Why do you serialize?
What is an abstract method?
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!
Difference between loadclass and class.forname?
What are callback interfaces?
What is colon_pkg_prefixes and what is its use?
What modifiers may be used with an interface declaration?
What is the purpose of the wait(), notify(), and notifyall() methods?
What is glasgow?
Which are the different segments of memory?