Hi All,
       i want to get the refrence of session by using the sessionId.i am
trying this as follow:


    HttpSession ObjSession=request.getSession(true);
    String sesid=ObjSession.getId();
     HttpSessionContext sesscontext=ObjSession.getSessionContext();

    HttpSession ObjSess=sesscontext.getSession(sesid);
    if(ObjSess==null) {
        out.println("<br>session is null");
     } else {
        out.println("<br>session is not null");
     }


every time i am getting "null".Sun have removed the method
HttpSessionContext.getSession(String id) from his new version of Servlet
API.but i want to use it...for some requirement in my project.can any body
suggest me how to do this.




Manoj Kumar
Software Engineer
PlanetAsia.com
E-Mail:  [EMAIL PROTECTED]
Phone:  5522252/54/59
Ext  413

___________________________________________________________________________
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