modify('+3 months'); header(sprintf( 'Set-Cookie: msz_auth=%s; Expires=%s; Max-Age=%d; Domain=%s; Path=/; SameSite=Lax; HttpOnly;%s', $packed, $threeMonths->format('D, d M Y H:i:s e'), $threeMonths->getTimestamp() - $now->getTimestamp(), self::domain(), filter_has_var(INPUT_SERVER, 'HTTPS') ? ' Secure' : '' )); } public static function nuke(): void { header(sprintf( 'Set-Cookie: msz_auth=; Expires=Wed, 31 Dec 1969 21:29:59 UTC; Max-Age=-9001; Domain=%s; Path=/; SameSite=Lax; HttpOnly;%s', self::domain(), filter_has_var(INPUT_SERVER, 'HTTPS') ? ' Secure' : '' )); } }