We upgraded to coldfusion11. Our application is overlayed with in cfusion.war. And we bundled two more web modules(module2.war, module3.war) in the same cfusion.ear.
we share the session from cfusion.war to module2.war by using include method, this worked before the upgrade. After the upgrade the session is not carried over to the module2.war.
RequestDispatcher rd = null;
rd = context.getContext("/module2").getRequestDispatcher("/WEB-INF/LoginServlet");
LoginServlet of module2.war saves the session
setSessionAttribute(session, SessionConstants.USER_ID, req.getAttribute("user_id"));
After user_id is set in login, when we request for other pages we check for
(String)session.getAttribute(SessionConstants.USER_ID)!=null, if this check passes, it works.
If someone can give clue of what changed in ColdFusion11 can help us troubleshooting this. Any help is appreciated.
To start, from which version did you upgrade? I ask because, when moving from ColdFusion 9 to ColdFusion 10 and 11, the ColdFusion Team changed the design of the session apparatus.
Thanks for your reply.
we upgraded from 11.0 to 11.3. So, no major change. We found issue within our packaging. cfusion.war web.xml was missing the servlet definition. It worked in our Linux environment after fixing web.xml. But on my windows machine, i'm still having issues with Upgrade.
It could be some other missing configuration.
First of all, is it recommended to transfer sessions they way you do, even though it worked? Have you checked the documentation on this?
In any case, the release notes for Updates 1, 2 and 3 of ColdFusion 11 apparently say nothing that is relevant to your problem. The following may or may not be relevant, but is worth looking into: (String)session.getAttribute(SessionConstants.USER_ID)!=null . What about using the CFML version of the code.