Hi,
I’m running a php script on a third party website, i also own the third party website.
When i run the script, then certain browsers don’t allow it to place cookies.
This is the part where it sets the cookie (which it doesnt do)
setcookie(“floodprotect”, time(), time()+100);
setcookie(“remembername”, $tagname, time()+10000000);
setcookie(“rememberurl”, $tagurl, time()+10000000);
$postit = array();
$postit[] = 0;
$postit[] = $tagname;
$postit[] = $tagurl;
$postit[] = $samesite=‘none’;
$postit[] = $_SERVER[‘REMOTE_ADDR’];
$postit[] = $tagmsg;
$postit[] = time();
$tagdb = fopen("./db.txt", “a+”);
if (!fwrite($tagdb, array_to_string($postit)."\n"))
I think it is something with “samesite=none” and Secure, but i cant get it right, when i change something to the code, it bricks.
Can someone help?