rfc:same-site-cookie
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:same-site-cookie [2017/07/24 08:45] – f.bosch_genkgo.nl | rfc:same-site-cookie [2022/11/21 11:07] (current) – Point commits to GitHub girgias | ||
---|---|---|---|
Line 4: | Line 4: | ||
* Author of RFC and creator of PR: Frederik Bosch, f.bosch@genkgo.nl | * Author of RFC and creator of PR: Frederik Bosch, f.bosch@genkgo.nl | ||
* Author of original patch: xistence at 0x90 dot nl | * Author of original patch: xistence at 0x90 dot nl | ||
- | * Status: | + | * Status: |
* First Published at: https:// | * First Published at: https:// | ||
Line 66: | Line 66: | ||
<code php> | <code php> | ||
- | bool setcookie | + | bool setrawcookie |
- | bool setcookie | + | bool setrawcookie |
</ | </ | ||
Line 80: | Line 80: | ||
<code php> | <code php> | ||
+ | void session_set_cookie_params ( int $lifetime [, string $path [, string $domain [, bool $secure = false [, bool $httponly = false ]]]] ) | ||
void session_set_cookie_params ( int $lifetime [, array $options ] ) | void session_set_cookie_params ( int $lifetime [, array $options ] ) | ||
</ | </ | ||
Line 111: | Line 112: | ||
===== Proposed PHP Version(s) ===== | ===== Proposed PHP Version(s) ===== | ||
- | next PHP 7.x | + | Next PHP 7.x. Since deadlines have passed for 7.2, this will be 7.3. |
===== RFC Impact ===== | ===== RFC Impact ===== | ||
Line 126: | Line 127: | ||
===== Proposed Voting Choices ===== | ===== Proposed Voting Choices ===== | ||
- | This RFC requires a 50%+1 majority. | + | This RFC requires a 50%+1 majority. |
- | 1. Add samesite argument to setcookie, setrawcookie and session_set_cookie_params functions. | ||
- | 2. Allow setcookie, setrawcookie and session_set_cookie_params to accept an array of options, with the possible options being path, domain, secure, httponly and samesite. | + | === First implementation suggestion === |
+ | |||
+ | |||
+ | <doodle title=" | ||
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
+ | |||
+ | === Second implementation suggestion === | ||
+ | |||
+ | <doodle title=" | ||
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
===== Patches and Tests ===== | ===== Patches and Tests ===== | ||
- | * [[https:// | + | * [[https:// |
+ | * Github PR with the array of options solution will be created when this RFC gets accepted | ||
+ | * Implemented via [[https:// | ||
+ | * Documented via [[https:// | ||
===== References ===== | ===== References ===== | ||
Line 140: | Line 156: | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
+ | |||
+ | ===== Errata ===== | ||
+ | |||
+ | The actually implemented alternative signatures of the functions have been slightly changed from the original RFC. See the documentation in the PHP manual for details: | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// |
rfc/same-site-cookie.1500885906.txt.gz · Last modified: 2017/09/22 13:28 (external edit)