Make sure you have a domain that is known by both server and client. echo $_SERVER['HTTP_HOST'] should tell you the exact same domain that ... ... <看更多>
So the proposal was: add another parameter to the setcookie function for the 'SameSite' flag that was introduced recently. This would be the ... ... <看更多>
If you're doing this via a theme, add this line to your functions.php file: function set_user_cookie() { $school = "Some Value"; setcookie('default_school', ... ... <看更多>