mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 08:25:55 +00:00
more php8 fixes mostly related to login
This commit is contained in:
@@ -457,9 +457,12 @@ class Pref_Users extends Handler_Protected {
|
||||
}
|
||||
|
||||
static function logout_user() {
|
||||
@session_destroy();
|
||||
if (session_status() === PHP_SESSION_ACTIVE)
|
||||
session_destroy();
|
||||
|
||||
if (isset($_COOKIE[session_name()])) {
|
||||
setcookie(session_name(), '', time()-42000, '/');
|
||||
|
||||
}
|
||||
session_commit();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user