note 125241 added to function.setcookie
| From: | synnus at gmail dot com | Date: | Mon, 03 Aug 2020 22:04:08 +0000 |
| Subject: | note 125241 added to function.setcookie | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-214924@lists.php.net to get a copy of this message | ||
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.
<?php
ini_set("session.cookie_secure", 1);
session_start();
my PHP code ....
?>
----
Server IP: 45.112.84.4
Probable Submitter: 103.51.166.36 (proxied: 176.139.229.105)
----
Manual Page -- http://php.net/manual/en/function.setcookie.php
Edit -- https://master.php.net/note/edit/125241
Del: integrated -- https://master.php.net/note/delete/125241/integrated
Del: useless -- https://master.php.net/note/delete/125241/useless
Del: bad code -- https://master.php.net/note/delete/125241/bad+code
Del: spam -- https://master.php.net/note/delete/125241/spam
Del: non-english -- https://master.php.net/note/delete/125241/non-english
Del: in docs -- https://master.php.net/note/delete/125241/in+docs
Del: other reasons-- https://master.php.net/note/delete/125241
Reject -- https://master.php.net/note/reject/125241
Search -- https://master.php.net/manage/user-notes.php