mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 22:15:56 +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;
|
||||
|
||||
Reference in New Issue
Block a user