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
Why are my checkboxes not being set from on to off?
Why are some of the class and element names counter-intuitive?
Can I use javascript to submit a form?
When is the best time to validate input?
How many times may an objects finalize() method be invoked by the garbage collector?
Write a singleton program?
what is meant by JRMP?
Why won’t the jvm terminate when I close all the application windows?
How database connectivity in XML is achieved?
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?
Whats new with the stop(), suspend() and resume() methods in jdk 1.2?
What are the purpose of introspection?
How would you reatach detached objects to a session when the same object has already been loaded into the session?
What is jboss?
If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?