How can i count number of active sessions ?

Hi All,

I am in great need to count number of active(valid which are not dead at given piont of time) sessions of my servlet.

Actually i want to restrict login whenever more than specified(say 10) the number of person's logged into my system.

How can i do this ? Please help me out .

Thanks in advance

Naresh,

[362 byte] By [nchhonker] at [2007-9-26 2:27:21]
# 1
If you are using Servlet API 2.3, take a look at the Javadoc for javax.servlet.http.HttpSessionListener
neville_sequeira at 2007-6-29 9:41:29 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Hi Naresh,I already replied same question last week. Here iam giving you the link. Hopes it will help you out. http://forum.java.sun.com/thread.jsp?forum=45&thread=150088Regards,TirumalaraoDeveloper TechnicalSupport,Sun Microsystems,India
rao_indts at 2007-6-29 9:41:29 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...