re: svn 703784: cross-domain contexts

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

re: svn 703784: cross-domain contexts

Adam Heath-2
In ofbiz-containers.xml, enable-cross-subdomain-sessions is set to
true.  However, in CatalinaContainer.java, the default value is false.
 When the value is true, catalina will *always* create a JSESSIONID
cookie value, even if no code calls request.getSession() or
getSession(true).  This causes frontend cache system(varnish
specifically) to not cache the object.  It also causes increase memory
pressure.

Why is this value set to true?  I think it should be false.
Reply | Threaded
Open this post in threaded view
|

Re: svn 703784: cross-domain contexts

Scott Gray-2
Yeah I'm +1 for that, another issue I stumbled across in the past  
couple of days is that it doesn't work at all if you're running  
separate instances on different subdomains e.g. demo.ofbiz.org and  
demo904.ofbiz.org because the cookies keep overwriting each other.

Regards
Scott

On 24/07/2009, at 5:48 AM, Adam Heath wrote:

> In ofbiz-containers.xml, enable-cross-subdomain-sessions is set to
> true.  However, in CatalinaContainer.java, the default value is false.
> When the value is true, catalina will *always* create a JSESSIONID
> cookie value, even if no code calls request.getSession() or
> getSession(true).  This causes frontend cache system(varnish
> specifically) to not cache the object.  It also causes increase memory
> pressure.
>
> Why is this value set to true?  I think it should be false.


smime.p7s (3K) Download Attachment