old php won't work with cookie array
This commit is contained in:
parent
4fe2774094
commit
62ee48c799
@ -17,10 +17,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
$app_disp_lang = filter_input(INPUT_POST, 'app_disp_lang', FILTER_SANITIZE_STRING); // GET SANITARY LANG CHOICE
|
$app_disp_lang = filter_input(INPUT_POST, 'app_disp_lang', FILTER_SANITIZE_STRING); // GET SANITARY LANG CHOICE
|
||||||
setcookie ( 'app_disp_lang', $app_disp_lang, [
|
// only works with new php?
|
||||||
'expires' => time() + 60*60*24*90,
|
// setcookie ( 'app_disp_lang', $app_disp_lang, [
|
||||||
'secure' => false,
|
// 'expires' => time() + 60*60*24*90,
|
||||||
'httponly' => false,
|
// 'secure' => false,
|
||||||
'samesite' => 'Lax',
|
// 'httponly' => false,
|
||||||
]);
|
// 'samesite' => 'Lax',
|
||||||
|
//]);
|
||||||
|
setcookie ( 'app_disp_lang', $app_disp_lang, time() + 60*60*24*90); // SET SITE COOKIE
|
||||||
header('Location: index.php'); // GO HOME UNTIL WE ADD REFERER LOGIC
|
header('Location: index.php'); // GO HOME UNTIL WE ADD REFERER LOGIC
|
||||||
|
@ -17,10 +17,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
$site = filter_input(INPUT_POST, 'site', FILTER_SANITIZE_STRING); // GET SANITARY SITE CHOICE
|
$site = filter_input(INPUT_POST, 'site', FILTER_SANITIZE_STRING); // GET SANITARY SITE CHOICE
|
||||||
setcookie ( 'app_site', $site, [
|
//setcookie ( 'app_site', $site, [
|
||||||
'expires' => time() + 60*60*24*90,
|
// 'expires' => time() + 60*60*24*90,
|
||||||
'secure' => false,
|
// 'secure' => false,
|
||||||
'httponly' => false,
|
// 'httponly' => false,
|
||||||
'samesite' => 'Lax',
|
// '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
|
header('Location: index.php'); // GO HOME UNTIL WE ADD REFERER LOGIC
|
||||||
|
Loading…
Reference in New Issue
Block a user