Encrypt fixes, add carnum options, remove debug lines

This commit is contained in:
2021-10-15 22:31:52 -04:00
parent 9340a49b67
commit 9cd8dc3031
6 changed files with 26 additions and 19 deletions

View File

@@ -18,11 +18,11 @@
$app_disp_lang = filter_input(INPUT_POST, 'app_disp_lang', FILTER_SANITIZE_FULL_SPECIAL_CHARS); // GET SANITARY LANG CHOICE
// only works with new php?
// setcookie ( 'app_disp_lang', $app_disp_lang, [
// 'expires' => time() + 60*60*24*90,
// 'secure' => false,
// 'httponly' => false,
// 'samesite' => 'Lax',
//]);
setcookie ( 'app_disp_lang', $app_disp_lang, time() + 60*60*24*90); // SET SITE COOKIE
setcookie ( 'app_disp_lang', $app_disp_lang, [
'expires' => time() + 60*60*24*90,
'secure' => false,
'httponly' => true,
'samesite' => 'Strict',
]);
//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