Status/Resolution/Reason: To Fix//BugVerified
Reporter/Name(from Bugbase): James M. / ()
Created: 06/26/2019
Versions: 2016,2018
Failure Type: Enhancement Request
Found In Build/Fixed In Build: 2016.0.11.314546 /
Priority/Frequency: Normal / Unknown
Locale/System: English / Win 2016
Vote Count: 0
Problem Description: I was testing my website using webhint.io and received a security recommendation regarding cookie expiration dates. Apparently an expiration date using UTC/GMT format is required by cookies. Instead of "Thu, 11 Jul 2019 22:43:23 GMT", the date generated by ColdFusion is formatted with dashes "Thu, 11-Jul-2019 22:43:23 GMT". Compare the date format by visiting any GitHub repository and viewing the "Set-Cookie" headers (expires=Wed, 10 Jul 2019 23:03:10 -0000) While comparing, I noticed that GitHub cookie headers are all lowercase while CF-generated headers use title-case.
Steps to Reproduce:
<CFCOOKIE name="TestCookie" value="#Now()#" expires="15">
Actual Result:
(View F12 Web Developer Tools - Network Panel)
Expires=Thu, 11-Jul-2019 22:43:23 GMT
(with dashes in the date format)
Expected Result:
expires=Thu, 11 Jul 2019 22:43:23 GMT
( a valid UTC/GMT date format)
Any Workarounds:
None.
Attachments:
Comments: