title: Session sharing on WildFly is not working
body: <p>I just migrated from JBoss EAP to WildFly and I am facing some issues with session sharing. </p>
  
  <p>Previously in JBoss EAP, in my <code>web.xml</code> I added the below configuration:</p>
  
  <pre><code>&lt;session-config&gt;
      &lt;cookie-config&gt;
          &lt;path&gt;/&lt;/path&gt;
      &lt;/cookie-config&gt;
  &lt;/session-config&gt;
  </code></pre>
  
  <p>And both the applications were generating the same session id.</p>
  
  <p>But in WildFly the problem is, application 1 will write session as for example <code>123</code> in the path <code>/</code>, and if I open application 2 it will override the session as say <code>456</code>. Now if I refresh application 1 it will again override the session and the process keeps on repeating. </p>
  
  <p>How can I successfully share sessions in WildFly?</p>