Removes old unused cookie code

main
Yasen Pramatarov 2024-08-11 13:15:18 +03:00
parent 8e123cf5f2
commit 20d9dc0e73
1 changed files with 0 additions and 12 deletions

View File

@ -35,18 +35,6 @@ try {
} }
// set session lifetime and cookies // set session lifetime and cookies
// FIXME: need to set this before session start (otherwise we need the separate cookie)
// ini_set('session.gc_maxlifetime', $gc_maxlifetime);
// session_set_cookie_params([
// 'lifetime' => $setcookie_lifetime,
// 'samesite' => 'Strict',
// 'httponly' => true,
// 'secure' => isset($_SERVER['HTTPS']),
// 'domain' => $config['domain'],
// 'path' => $config['folder']
// ]);
// session_start();
// FIXME we use separate cookie, because the above won't work
setcookie('username', $username, [ setcookie('username', $username, [
'expires' => $setcookie_lifetime, 'expires' => $setcookie_lifetime,
'path' => $config['folder'], 'path' => $config['folder'],