Skip to main content
July 12, 2013
Question

CF 9 Session Variables Resetting

  • July 12, 2013
  • 5 replies
  • 1110 views

We are experiencing the SESSION variables resetting in CF9.0.2 between page navigation.

As I understand from other forums there was a patch for 9.0.1 to help with this but we are on 9.0.2 which was the cumulative release. Short of recoding every CFLOCATION and HREF. I have not seen a real solution for this issue posted on any forums as of yet.

We have checked and looked into the CFapplication (application.cfc) files and making sure the Application, Session, and Clientmanagment are enabled. (So please save us all time and to do not reply with flippant did you try the obvious questions)

Is there a real fix for this issue in CF9? Or are SESSION variables useless as of the 9th release?

This topic has been closed for replies.

5 replies

BKBK
Community Expert
Community Expert
July 25, 2013

Cfpb,

I have two suggestions for you to try.

(1) Your problem might be caused by the session fixation issue. Pete Freitag describes this quite well in his blog, and gives you 3 possible workarounds.

(2) Use J2EE sessions instead (which you can configure in the ColdFusion Administrator).

July 24, 2013

We had a similar test that p. Sim described and have determined it is likely to be a server configuration issue. THANK YOU P.SIM for the input. Although not resolved we are now running down the path of troubleshooting our combination of Tomcat 6 and Coldfusion 9.

If anyone knows of any good resources in this space please do let me know.

Thank you!

p_sim
Participating Frequently
July 25, 2013
p_sim
Participating Frequently
July 16, 2013

Create a simple test that contains Application.cfc, test_1.cfm, and test_2.cfm. Configure the session management and create a session variable for test. Call test_1.cfm and see the output of session variable. Call test_2.cfm; and do the same thing. If you see the same values, then it has nothing to do with the server. Otherwise, server configuration issue.

July 16, 2013

The case did not make a difference. Which is fine as it follows the normal CF patterns of the past. Any other peoples input?

BKBK
Community Expert
Community Expert
July 15, 2013

cfpb wrote:

... We have checked and looked into the CFapplication (application.cfc) ...

Did you save the application file as Application.cfc, with capital A?