Nicholas Whitehead wrote:

> Can anyone suggest a reliable method for determining a
> servlet engine's session cookie name ? I am writing
> what needs to a be a portable servlet and I need to
> determine the session cookie name which appears to
> vary according to vendor. My current servlet runner
> taht I use to debug uses "SESSION-ID" where as JRun
> uses "jrunsessionid".
>

Prior to version 2.2 of the servlet API, the cookie name was engine-specific.
Some engines allowed you to configure it, others did not.

Starting with version 2.2, the name of the cookie is defined in the API
specification to be "JSESSIONID".

>
> I am starting to feel that the API needs two new
> methods:
>
> String getSessionCookieName()
> void setSessionCookieName(String cookieName)
>
> Any ideas ?
>

No new methods are required.

>
> Nicholas
>

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