- In Jboss 5 cookies are bound to context with specific app. and hence are not accessible or behave differerntly across web app. Solution to this problem is modify deploy/jbossweb.sar/context.xml and add following line:
This will make sure that cookies are bound to / and being shared between 2 apps.
Hope this helps someone.