|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2015-07-06 09:52 UTC] craig at craigfrancis dot co dot uk
Description: ------------ Google Chrome is currently considering implementing First-Party-Only Cookies. https://code.google.com/p/chromium/issues/detail?id=459154 https://tools.ietf.org/html/draft-west-first-party-cookies-01 https://www.chromestatus.com/feature/4672634709082112 This is an interesting security feature, so should the setcookie() function be updated to also support this? http://php.net/setcookie bool setcookie ( string $name [, string $value [, int $expire = 0 [, string $path [, string $domain [, bool $secure = false [, bool $httponly = false [, bool $firstonly = false ]]]]]]] ) PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 23:00:02 2025 UTC |
Agreed, it was more to start the discussion now (although perhaps not waiting for too many implementations, as I know it takes a while for the likes of RedHat to get new versions of PHP into a shipping product). And I agree that the setcookie signature is getting a bit too long: setcookie('name', 'value', 0, '/', 'example.com', true, true, true); Out of interest, to support this (and potentially other) flags now, I suspect it will involve re-creating the setcookie() function with a header() call?