mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-02-10 16:01:33 +00:00
force regenerate session id on successful login, remove previous blank SID check
This commit is contained in:
@@ -712,7 +712,14 @@
|
||||
}
|
||||
|
||||
if ($user_id && !$check_only) {
|
||||
@session_start();
|
||||
|
||||
if (session_status() != PHP_SESSION_NONE) {
|
||||
session_destroy();
|
||||
session_commit();
|
||||
}
|
||||
|
||||
session_start();
|
||||
session_regenerate_id(true);
|
||||
|
||||
$_SESSION["uid"] = $user_id;
|
||||
$_SESSION["version"] = VERSION_STATIC;
|
||||
|
||||
@@ -160,9 +160,5 @@
|
||||
if (!defined('NO_SESSION_AUTOSTART')) {
|
||||
if (isset($_COOKIE[session_name()])) {
|
||||
@session_start();
|
||||
|
||||
if (!$_SESSION['uid']) {
|
||||
logout_user();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user