You should remember that HttpSessionContext is depreciated.
----- Original Message -----
From: "Leos Urban" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 27, 2000 2:10 PM
Subject: Re: Session counting
> Tip:
>
> HttpSession hs = req.getSession(true);
> HttpSessionContext hsc hs.getSessionContext();
> Enumeration ehsc = HttpSessionContext.getIds();
> int i=0;
> while (ehsc.hasMoreElements())
> {
> String a = (String) ehsc.nextElement();
> i++;
> }
> if (i>10) {...}
>
> Leos
>
>
___________________________________________________________________________
> 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