You create a bean that implements SessionBindingListener and put this bean
in a session - the bean will get events when it is bound to or unbound from
(i.e. the session ends) a session - should be easy to count the sessions
then,

Kevin

-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of tomas
zeman
Sent: 12 July 1999 22:08
To: [EMAIL PROTECTED]
Subject: Counting sessions


Hi all,

I would like to write a webchat using servlets and I want to have names
of users which sessions didn't expired(which soo a chat page in last 15
minutes) on the bottom of the page.

So how exactly I count and get all sessions informations from all users
who "are still in chat"?
and how servlet can get information of all users who run it and their
session still exist?
Does anyone have a example?

Thanks a lot
Tomas


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to