old php won't work with cookie array

This commit is contained in:
2021-06-03 09:51:21 -04:00
parent 4fe2774094
commit 62ee48c799
2 changed files with 15 additions and 12 deletions

View File

@@ -17,10 +17,11 @@
*/
$site = filter_input(INPUT_POST, 'site', FILTER_SANITIZE_STRING); // GET SANITARY SITE CHOICE
setcookie ( 'app_site', $site, [
'expires' => time() + 60*60*24*90,
'secure' => false,
'httponly' => false,
'samesite' => 'Lax',
]);
//setcookie ( 'app_site', $site, [
// 'expires' => time() + 60*60*24*90,
// 'secure' => false,
// 'httponly' => false,
// 'samesite' => 'Lax',
//]);
setcookie ( 'app_site', $site, time() + 60*60*24*90); // SET SITE COOKIE
header('Location: index.php'); // GO HOME UNTIL WE ADD REFERER LOGIC