• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to know status of a session

 
Prakash Kishan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a couple questions regarding Servlet\Tomcat,
1. What is the way to find how many sessions are in running in server using servlet?
2. What is the way to know the status of any given session by providing session id?

It will be very helpful if I get solutions ASAP.

Thanks in advance.
 
satishkumar janakiraman
Ranch Hand
Posts: 334
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check HttpSessionListener or HttpSessionBindingListener. You can get some idea to find number of sessions.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!