-
1. Re: New session created on each request with session cookie
pjhavariotis Nov 21, 2016 2:50 AM (in response to jeepatz)If I am right, you want to implement session sharing between WAR modules subdeployments in a specific EAR.
If this is the case, you can check the documentation for EAP 7: https://access.redhat.com/documentation/en/red-hat-jboss-enterprise-application-platform/version-7.0/development-guide/#…
-
2. Re: New session created on each request with session cookie
jeepatz Nov 21, 2016 5:03 AM (in response to pjhavariotis)Thanks for the reply.
Yes this is the same configuration as the Wildlfy 10.0 documentation but it isn't working for me. I tried adding a jboss-all.xml file to the META-INF directory of the ear with the below configuration but still having the same issue:
<jboss umlns="urn:jboss:1.0">
<shared-session-config xmlns="urn:jboss:shared-session-config:1.0">
<max-active-sessions>10</max-active-sessions>
<session-config>
<session-timeout>15</session-timeout>
<cookie-config>
<name>JSESSIONID</name>
<path>/</path>
<comment>cookie comment</comment>
<http-only>true</http-only>
<secure>false</secure>
<max-age>-1</max-age>
</cookie-config>
<tracking-mode>COOKIE</tracking-mode>
</session-config>
<replication-config>
<cache-name>web</cache-name>
<replication-granularity>SESSION</replication-granularity>
</replication-config>
</shared-session-config>
</jboss>
-
3. Re: New session created on each request with session cookie
pjhavariotis Nov 21, 2016 5:19 AM (in response to jeepatz)In the documentation, the <tracking-mode>COOKIE</tracking-mode> is a member of the shared-session-config (not session-config).
Can you change your jboss-all.xml accordingly and try again?
-
4. Re: New session created on each request with session cookie
jeepatz Nov 21, 2016 5:40 AM (in response to pjhavariotis)I think that's an error in the example xml in the documentation. The example xml contradicts the structure in reference section 3.7.4.1 just above the example.
The <tracking-mode> is within <session-config> in the schema and so JBoss fails on startup with a parsing error if <tracking-mode> is within <shared-session-config> rather than within <session-config>.
-
5. Re: New session created on each request with session cookie
pjhavariotis Nov 21, 2016 6:03 AM (in response to jeepatz)OK then! You'd better report it back to Red Hat as a support case.
-
6. Re: New session created on each request with session cookie
jeepatz Jan 5, 2017 4:05 AM (in response to jeepatz)It seems that this may have been a bug in JBoss EAP 7.0.0