"Sullivan, Sean" wrote:
> > From: Brian Burridge [mailto:[EMAIL PROTECTED]]
> >
> > Does anyone know how to pull the session id that the JSP
> > servlet engine is using in the cookie to track the session?
>
> Use the getRequestedSessionID method in HttpServletRequest.
>
This gets you the session ID that was asked for, but it may not be the current
one in some cases (i.e. your old session timed out, and a new one was
created). To get the ID of a sesison itself (since you have the session
object), simply call:
String id = session.getId();
See the javadoc for javax.servlet.http.HttpSession to know everything you can
do with a session.
>
> -Sean
>
Craig McClanahan
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".