PHP SameSite session problem, session doesn't work
问题 I hope anybody can give me some ideas to my problem. I am trying to apply SameSite cookie to make session work but it seems it doesn't work. The visited site html: <iframe src="https://www.example.com/test/iframe.php"></iframe> Iframe source site: <?php header('Set-Cookie: cross-site-cookie=PHPSESSID; SameSite=None; Secure'); session_start(); if(!isset($_SESSION['test'])){ echo 1; $_SESSION['test'] = 'ee2'; }else{ echo $_SESSION['test']; } If I visit the website, I still receive A cookie