For JBoss Application server using Apache Tomcat 7 as the web server, the restrictive cookie path can be configured by setting sessionCookiePath="/" in the global context.xml (in CATALINA_BASE/conf/context.xml)
. For more information, see the Apache Tomcat website.