According to SUN, HttpSessionContext is deprecated.

All of my research shows there is no other class
available.  SUN has deprecated this class for
security reason.

You could write all sessions to a database, BUT, how
do you know when a session is no longer valid?


Mark Mynatt
[EMAIL PROTECTED]


---- "A mailing list for discussion about Sun
Microsystem's Java              Servlet API
Technology." <[EMAIL PROTECTED]> wrote:
> Hello,
>         I am using the HttpSessionContext &
HttpSession
>  for tracking the sessions of multiple users.
> Code is as follows:
>
>
> HttpSession session=req.getSession();
>
> HttpSessionContext context=session.getSessionContext
();
>
> Enumeration ids=context.getIds();
>
> System.out.println
("****************************************"+ids.hasMor
eElements());
>
> while(ids.hasMoreElements()){
>         System.out.println("It is session context
loop");
>         String id=(String)ids.nextElement();
>         System.out.println("Checking id"+id);
>         }
>
> O/p of ids.hasMoreElements() is "false",which means
session object created is
> not referring to the HttpSessionContext context.
Please suggest a method to
> bind the session to the HttpSessionContext.
>
> thanks,
> Viraj
>
>
______________________________________________________
_____________________
> 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