Skip to content

setcookie() 'samesite' option bugging #4873

@Heraes-git

Description

@Heraes-git

From manual page: https://php.net/function.setcookie


This works :

$cookie_options = array('expires' => $max_expiration, 'path' => '/', 'domain' => '', 'secure' => false, 'httponly' => false);
setcookie("Sondage01", $cookie_value_string, $cookie_options);

This doesn't work :

$cookie_options = array('expires' => $max_expiration, 'path' => '/', 'domain' => '', 'secure' => false, 'httponly' => false, 'samesite' => 'None');
setcookie("Sondage01", $cookie_value_string, $cookie_options);

Test page here : https://pastebin.com/5Bu8G225
Uncomment line 5 to make it work again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions