Hi Randie,

         Use getId() --  which is a method of HttpSession interface for
 getting the sessionId created by your servlet.   Every session created by
the server has a unique 'id' associated with it in order to identify this
session from other sessions. This method returns the 'id' of this session.
U can use this in your cade as follow for getting the id:
HttpSession ses=req.getSession(trur);
ses.getId();

 Regards,
Ram

> ----- Original Message -----
> From: randie ursal <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, February 04, 2003 6:54 AM
> Subject: how get Session Id from Java Application
>
>
> > hi,
> >
> >
> >    what is the response parameter key to access from my Java Application
> > to know the session Id created by my Servlet?
> >
> >
> > thanks a lot.
> >
> >    randie
> >
> >
>
___________________________________________________________________________
> > 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