Copy link to clipboard
Copied
Hello all, I am trying to work through this PCI thing and I have everyting set properly per Adobe - but I am still getting a fail because of prediciptable cookies. Here is what I am confused about: This article (http://kb2.adobe.com/cps/404/kb404762.html) says that J2EE replaces CF_ID and CF_TOKEN - but my server is generating a CFID and CFTOKEN (No Underscores) anyway? With J2EE checked, why are these cookies even being set? How do I get rid of them - they are why my PCI is failing?
Add this.setClientCookies="false" to your Application.cfc or srtClientCookies="false" to you <cfapplication> to tell ColdFusion not to set those cookies.
NOTE: I hope you are not using client variables.
Copy link to clipboard
Copied
Add this.setClientCookies="false" to your Application.cfc or srtClientCookies="false" to you <cfapplication> to tell ColdFusion not to set those cookies.
NOTE: I hope you are not using client variables.
Copy link to clipboard
Copied
Will that terminate the ability to use "ANY" cookies? We use coockies in a verity of different way for ad tracking, subscription tracking, etc.
Copy link to clipboard
Copied
Oh and NO that will not prevent you from using any cookies, it is just telling ColdFusion not to set cookies for use with the client scope, which is why those cookies are still being set.
Jason
Copy link to clipboard
Copied
I think they may have been left-overs. I deleted my history again, close my browser and rebooted - and now your susgestion has worked and I am not able to get them back! So just to make sure I am clear on what I did, setting setclientcookies="no" only affects any code that is looking for the CFID or CFTOKEN directly? If I do NOT make a call to CFID or CFTOKEN I should not be affected anywhere, correct?
Copy link to clipboard
Copied
setClientCookies=false simply tells ColdFusion not to set those cookies. I don't knwo that I woudl say that it "affects any code". If you are ever looking for those cookies in code then Yes that code would not work. But I cannot imagine why anyone would ever look for those cookies anyway.
Copy link to clipboard
Copied
Thanks again - none of my code looks for CFID or CFTOKEN in cookies, session or anywhere for that fact! So far this seems to have worked beautifully! Thanks again for your help!
Copy link to clipboard
Copied
I did as you susgested, deleted all the history from the browsers, and as soon as I load the page, the cookies are still being created?
Copy link to clipboard
Copied
Can you post the code from your Applciation.cfc or Application.cfm?
Copy link to clipboard
Copied
When you say you "deleted history" do you mean you deleted all of your cookies?
Find more inspiration, events, and resources on the new Adobe Community
Explore Now