This content has been marked as final. Show 4 replies
If you are trying to do it for session sharing across domains then you can probably also refer to something ATG offers for enabling session sharing across domains for multisite. Take a look at this in the ATG Platform Programming Guide and see if it helps:
I found what I needed:
You add <SessionCookie domain="example.com"/> under <Context> in the WEB-INF/context.xml of your application.
Edited by: dominiclovell on Nov 12, 2012 5:37 AM
I am trying to set my application's JSESSIONID to a custom name instead the default host name. I have configured /WEB-INF/context.xml as you have mentioned. for ex .
But whenever I am hitting my application with localhost or 127.0.0.1 or another domain name (mytestapp.com) the JSESSIONID is created with the domain of the URL and not based on the value which I set in SessionCookie (example.com). Do I need to configure any other xml files in jboss.
If not 100% sure on what you're trying to achieve, but if you configure JBoss to send a different host in the cookie, and request the same application via a different domain, your browser won't store the cookie for that session, as it sees it as a different domain and ignore it for that response.