Reputation: 49
I have a ColdFusion application war, and a Java application war, deployed in same Tomcat 8 server. I have a valid ColdFusion session and wanted to get access to that session in java. How can I do that? Since I am new to ColdFusion, I could not figure it out.
Upvotes: 1
Views: 83
Reputation: 20804
I didn't know, so I googled access coldfusion session from java
. That led me to here, which says:
Similarly, the ColdFusion Session scope is a structure within the JEE session (assuming that the J2EE Sessions feature has been enabled, as discussed in the next session.) Because ColdFusion identifies sessions by the application name. the session structure is contained in an attribute of the JEE session that the application name identifies. Therefore, you access ColdFusion session variables as follows:
((Map)(session.getAttribute("CFApplicationName"))).get("sessionVarName")
Upvotes: 3