Fix broken Unix timestamp formatting

This commit is contained in:
Alex Cabal 2024-06-25 10:51:48 -05:00
parent d1901970a5
commit 6af2717773
3 changed files with 4 additions and 4 deletions

View file

@ -98,7 +98,7 @@ class Session{
}
public static function SetSessionCookie(string $sessionId): void{
setcookie('sessionid', $sessionId, ['expires' => (new DateTimeImmutable('+1 week'))->format('@'), 'path' => '/', 'domain' => SITE_DOMAIN, 'secure' => true, 'httponly' => false, 'samesite' => 'Lax']); // Expires in two weeks
setcookie('sessionid', $sessionId, ['expires' => (new DateTimeImmutable('+1 week'))->format('U'), 'path' => '/', 'domain' => SITE_DOMAIN, 'secure' => true, 'httponly' => false, 'samesite' => 'Lax']); // Expires in two weeks
}
/**