Skip to main content

[webtier] Re: Using glassfish without cookies

1 reply [Last post]

Reply viewing options

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

On 12/10/08 03:50, wrote:
> Hi.
> Can you help me DISABLE cookies within glassfish, and using for sessions only URL rewriting, please?

There are 2 ways of doing this:

1. Bundle a sun-web.xml with your webapp, and set "enableCookies" to

2. Leverage the new Servlet 3.0 facilities for disabling cookies
by declaring a ServletContextListener and implementing its
contextInitialized method
as follows:

public void contextInitialized(ServletContextEvent sce) {

Hope this helps.


> Thanks !
> [Message sent by forum member 'sandstorm_sh' (sandstorm_sh)]
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail: