Skip to main content

[webtier] Re: configuring JSESSIONID cookie name for different web applications

1 reply [Last post]
Anonymous

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Jan Luehe

Just a quick follow up:

The Servlet EG has agreed to making the session cookie name
configurable.

The session cookie name may be configured programmatically, via the
javax.servlet.SessionCookieConfig interface, as in:

public class SessionCookieConfigListener implements
ServletContextListener {

public void contextInitialized(ServletContextEvent sce) {
sce.getServletContext().getSessionCookieConfig().setName(
"MYJSESSIONID");
}
}

or declaratively in web.xml, as in:




MYJSESSIONID


Support for this feature will be available in the next GlassFish v3
nightly build.

Jan

> [Message sent by forum member 'ggierer' (ggierer)]
>
> http://forums.java.net/jive/thread.jspa?messageID=332788
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: webtier-help@glassfish.dev.java.net