-
1. Re: Issue with session sharing on Wildfly 8.2.1.final
ctomc Feb 16, 2016 5:37 AM (in response to vvn07)What you see is expected and correct behavior for standard servlet applications.
to enable session sharing you need to add jboss-all.xml to WEB-INF directory of all wars that will be sharing sessions
with content
<jboss umlns="urn:jboss:1.0">
<shared-session-config xmlns="urn:jboss:shared-session-config:1.0">
<session-config>
<cookie-config>
<path>/</path>
</cookie-config>
</session-config>
</shared-session-config>
</jboss>
-
2. Re: Issue with session sharing on Wildfly 8.2.1.final
vvn07 Feb 17, 2016 12:19 AM (in response to vvn07)I already tried this based on your reply on Sharing JSESSIONID across two applications(war) in a wildfly instance But it didn;t work for me. In my case I am not having an ear file containing the wars, both wars are having separate context root. Adding this file didn't change where the cookies are written, Its like
For App1 cookie123 in path /webapps1
For App2 cookie234 in path /webapps2