1
0
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:
Andrew Dolgov
2018-10-15 15:47:50 +03:00
parent 74736fce0f
commit 65e98f4086
3 changed files with 12 additions and 7 deletions

View File

@@ -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;