This content has been marked as final.
Show 3 replies
-
1. Re: How to stop JSESSIONID being shared between two domains
jaikiran Sep 2, 2014 12:20 AM (in response to pandpp)You can have a different and unique cookie name configured for either of those setups. See this post for how to do it https://developer.jboss.org/message/875915#875915
-
2. Re: How to stop JSESSIONID being shared between two domains
ctomc Sep 2, 2014 5:17 AM (in response to pandpp)Beyond what Jaikiran pointed out, every application context for example /app1 and /app2 get different session cookie which is limited to their context.
So can you post your undertow subsystem config here so we can see how you current config looks like.
-
3. Re: Re: How to stop JSESSIONID being shared between two domains
pandpp Sep 2, 2014 9:02 PM (in response to ctomc)Tomaz,
I believe this is the section you are referring to, which is under the "full-ha" profile, which is what we are using.
<subsystem xmlns="urn:jboss:domain:undertow:1.1"> <buffer-cache name="default"/> <server name="default-server"> <http-listener name="default" socket-binding="http"/> <ajp-listener name="ajp" socket-binding="ajp"/> <host name="default-host" alias="localhost"> <location name="/" handler="welcome-content"/> <filter-ref name="server-header"/> <filter-ref name="x-powered-by-header"/> </host> </server> <servlet-container name="default"> <jsp-config/> </servlet-container> <handlers> <file name="welcome-content" path="${jboss.home.dir}/welcome-content"/> </handlers> <filters> <response-header name="server-header" header-name="Server" header-value="WildFly/8"/> <response-header name="x-powered-by-header" header-name="X-Powered-By" header-value="Undertow/1"/> </filters> </subsystem>