If you want ColdFusion to create your session cookie as a domain level cookie, for example..bar.com, and not foo.bar.com, then you can configure this in jrun-web.xml: -
<session-config>
<cookie-config>
<active>true</active>
<cookie-domain>.bar.com</cookie-domain>
</cookie-config>
<persistence-config>
<active>false</active>
</persistence-config>
</session-config>
However, this is an extended instance parameter, so if you want to run two applications on this instance or even one application with or several different top-level domains, then one of them will have sessions that do not work.
Is there a way to add multiple domains to jrun-web.xml and choose the appropriate one?
Thank.
source
share