note 125299 added to function.setcookie
| From: | info at codekandis dot net | Date: | Mon, 24 Aug 2020 22:30:53 +0000 |
| Subject: | note 125299 added to function.setcookie | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-215022@lists.php.net to get a copy of this message | ||
https://www.php.net/manual/en/function.setcookie.php#125241
> The " PHPSESSID " cookie will soon be rejected because its " sameSite "
> attribute is set to " none " or an invalid value, and without " secure "
> attribute. To learn more about the "sameSite" attribute, visit
> https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite.
Or directly as an option to
session_start() ...
<?php
session_start(
[
'cookie_secure' => '1'
]
);
?>
----
Server IP: 45.112.84.4
Probable Submitter: 103.51.166.36 (proxied: 87.142.206.250)
----
Manual Page -- http://php.net/manual/en/function.setcookie.php
Edit -- https://master.php.net/note/edit/125299
Del: integrated -- https://master.php.net/note/delete/125299/integrated
Del: useless -- https://master.php.net/note/delete/125299/useless
Del: bad code -- https://master.php.net/note/delete/125299/bad+code
Del: spam -- https://master.php.net/note/delete/125299/spam
Del: non-english -- https://master.php.net/note/delete/125299/non-english
Del: in docs -- https://master.php.net/note/delete/125299/in+docs
Del: other reasons-- https://master.php.net/note/delete/125299
Reject -- https://master.php.net/note/reject/125299
Search -- https://master.php.net/manage/user-notes.php