Martin Kuba wrote:

> Andy Bailey wrote:
>
> > > It is not guaranted that the session will be held as parameter.
> > > Yes, Apache uses a parameter named "JServSessionId",
> > > many other servlet engines do it also, but some servlet engines
> > > keep the session in PATH_INFO part of the URL or somewhere else.
> > >
> > > See www.sun.com, it uses :
> > >
> > >
> > http://www.sun.com/share/text/SMICopyright.html;$sessionid$5Z0OCPAAAWZNRAMUV
> > FZE3NQ
> > >
> > you can get the session id value from session.getId() and have your client
> > bind that as a get parameter
> > Thats what I actually do and it works.
>
> Where do you get the name of the session parameter ? It is engine-dependent.
>

You don't need the name of the session parameter to get the ID of your own
session -- just use the getId() method described in the previous response.

For more complex requirements with current generation servlet engines, it is
engine dependent whether a parameter is used for the session ID at all, as well
as what its name is.  In the 2.2 API, you will see all engines conform to the new
standard -- passing the session ID via a query parameter named "jsessionid" if
URL rewriting is used, or a cookie named "jsessionid" if cookies are used.

Craig McClanahan

___________________________________________________________________________
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