Any one have any ideas? Still trying to resolve this.
You have to enable session use in the Coldfusion Administrator. In the Memory Variables page, check the boxes
Enable Application Variables
Enable Session Variables (when unchecked, CSRF protection is disabled)
Thanks BKBK. I think that's what I've already done, but I'll check when I get home. I might not have checked both boxes.
I confirmed I actually have all three check boxes checked. Cant remember what the other is, and I'm not home right now. But again both of the ones you said to make sure were checked, are.
Anything else you can think of? Thanks for the help!
Please confirm by actually opening the Coldfusion Administrator and checking it. Also check that the default values for timeout have sensible values. That is, no 0 times, for example. Then press the button to Submit Changes.
Add, if only just for completeness, the attribute applicationtimeout="#CreateTimeSpan(1,0,0,0)#".
Ok I'll do both. Wish I had brought my laptop with me to work so I could confirm this now.
Anyway, I screenshot it and add that attribute this afternoon. Thanks again!
Your description is more detailed, hence much clearer, now. The cause of the problem is that you fail to implement an Application file.
Delete the cfapplication tag from login_process.cfm and save the line
<cfapplication etc. etc.>
as the file Application.cfm
Name it Application.cfm not Application.cfc
This thread has information that will help someone else in future. If you are satisfied, please mark the post that you consider to be the correct answer. If you find it necessary, add a further explanatory post, and mark that as the answer.
Ok so cfm was what I had originally. Still not sure what cause the original error, but in saving my application file as cfc (accidently) then back to cfm....for some reason, not sure why, sublime would default the capital A back to lower case. So that was throwing an error. Had to manually browse to the file and rename it Application.cfm and then open with sublime. Seems to be working now. Maybe sublime issue, althought ive been using sublime for almost 2 years now and had no issues like this before.
Thanks for the help!
It's far from sublime I'm afraid. You simply seem to have used the cfapplication tag in Application.cfc. To be clear, the 2 alternatives are:
<cfapplication name="myApp" applicationtimeout="#CreateTimeSpan(1,0,0,0)#" sessionmanagement="yes" setclientcookies="yes" sessiontimeout="#CreateTimeSpan(0,1,0,0)#">
this.name = "myApp";
this.applicationTimeout = "#createTimespan(1,0,0,0)#";
this.sessionManagement = "yes";
this.sessionTimeout = "#createTimeSpan(0,1,0,0)#";
this.setClientCookies = "yes";
I would again appeal to you to mark off the thread as correct. That serves as a pointer to others with similar issues.
No I meant sublime seemed to have an issue saving application.whatever with a capital "A". Not that sublime was the root cause of my session enabled error.
Anyway, thanks for the help and I have marked this as solved and a correct solution.
It was too sublime for me to get it, for which I apologize.