Our site is secured by an SSL site, and the Magento 'secure' and 'unsecure' URL variables point to the https: // URL. However, a PCI check showed that cookies were not safe. They want to see a โsafeโ keyword when cookies are created using Set-Cookies in the page header.
I see Magento using this function in \ shop \ app \ code \ core \ Mage \ Core \ Model \ Cookie.php
if (is_null($secure)) { $secure = $this->isSecure(); } if (is_null($httponly)) { $httponly = $this->getHttponly(); } setcookie($name, $value, $expire, $path, $domain, $secure, $httponly);
but I'm not sure where the value of isSecure () comes from and why does it not contain the text โsecureโ?
SetCookie in page title:
frontend=sj4j9kltv7nc00gk8s0i81koi3; expires=Thu, 06-Nov-2014 23:39:11 GMT; path=/; domain=www.mydomaine.com; HttpOnly"
source share