httponly cookie
Hi,
I am working in CF7 verison and using application.cfm. I want to make cookie secure by enabling httponly to true. There is no option for httpnonly available for cfcookie in CF7, so I am using cfheader.
When using cfheader in application.cfm for enabling httponly,session ID - CFID&CFTOKEN creates for each and every page while navigating. My problem is unable to handle the session tracking for each and every page while doing navigation. I do not want to send the cfid and cftoken in URL parameter for security reason
Below code is using for my applicaion, and I followed all the instruction but no use.
<cfapplication clientmanagement="Yes" sessionmanagement="Yes" name="bsnew" setclientcookies="no" scriptprotect="All">
<cfif NOT IsDefined("cookie.cfid") >
<cfif isDefined("CGI.HTTPS") AND CGI.HTTPS EQ "on">
<cfheader name="Set-Cookie" value="CFID=#session.CFID#;secure;HTTPOnly" >
<cfheader name="Set-Cookie" value="CFTOKEN=#session.CFTOKEN#;secure;HTTPOnly" >
<cfelse>
<cfheader name="Set-Cookie" value="CFID=#session.CFID#;secure;HTTPOnly">
<cfheader name="Set-Cookie" value="CFTOKEN=#session.CFTOKEN#;secure;HTTPOnly">
</Cfif>
</cfif>
If anyone knows solution, please let me know and it would be great help.
