I'm using a Tomcat 7 server (Xampp for development) and I have the following apps deployed:
Tomcat/Webapps/App1 (FrontOffice)
Tomcat/Webapps/App2 (BackOffice)
the App2 is generating a Cookie (session.setAttribute("X","myValue")) that I need to retrieve on my App1 (via a jsp page by using $(X)).
This solution is working well if I'm deploying a unique application containing both app1 and app2. But for deployment reason, I need to separate Front and BackOffice.
So I tried to configure my Tomcat server to enable session Cookie for any app of my Context.
Here are the updates I performed:
on my Tomcat conf/context.xml:
<Context sessionCookiePath="/" crossContext="true">...
on my App2 Web.xml:
<session-config>
<session-timeout>30</session-timeout>
<cookie-config>
<path>/</path>
</cookie-config>
</session-config>
I restarted Tomcat but from my App1, I'm not able to retrieve session attributes created by my App2.
May be I'm missing something ?