users@glassfish.java.net

configuring JSESSIONID cookie name for different web applications

From: <glassfish_at_javadesktop.org>
Date: Wed, 18 Feb 2009 16:51:50 PST

I have three web applications, each deployed as the root context to a different listener port:

web1 : 8080
web2 : 8081
web3 : 8082

The web apps belong to the *same* domain. When logging on to web1 a session is created with a cookie name JSESSIONID. When logging on to web2 the session cookie is overwritten and web1 no longer has access to the session.

Is it possible to configure the JSESSIONID cookie name to be unique for each web application? Ideally web1 would have a session cookie name like JSESSIONIDWEB1.

I understand it is possible to configure the cookieDomain property in sun-web-app but each web app belongs to the same domain so this does not help.

Many thanks in advance!
[Message sent by forum member 'ggierer' (ggierer)]

http://forums.java.net/jive/thread.jspa?messageID=332788