users@glassfish.java.net

GlassFish v3 JSESSIONID Multiple Subdomains and TLDs

From: <glassfish_at_javadesktop.org>
Date: Sat, 10 Jul 2010 16:59:37 PDT

We have one web application that is being built to serve multiple regional web site TLDs and support thousands of dynamic subdomains. Examples include:

[i]www.example.com
www.example.co.uk
www.example.com.ar
fred123.example.co.uk (Thousands of this form)
fred123.p.example.us (Thousands of this form)[/i]

[b]Problem:[/b] GlassFish v3 automatically makes the domain of the JSESSIONID cookie to be the FQDN of the host request. What is required is that the host name part be stripped off the domain value at the very least to have domains values like:

[i].example.com
.example.co.uk
.example.com.ar
.example.co.uk (Thousands of this form)
.p.example.us (Thousands of this form)[/i]

And actually the last domain cookie value above should really read:

[i].example.us (Thousands of this form)[/i]

Does anyone know how this can be achieved? Any clues / help will be very much appreciated!
[Message sent by forum member 'ngsunw']

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