1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 11:45:56 +00:00

stop caching schema version entirely, fix some session_start() related warnings

This commit is contained in:
Andrew Dolgov
2021-02-25 15:28:27 +03:00
parent 1464abbbfc
commit efd196839a
6 changed files with 20 additions and 20 deletions

View File

@@ -59,8 +59,12 @@ class API extends Handler {
}
function login() {
@session_destroy();
@session_start();
if (session_status() == PHP_SESSION_ACTIVE) {
session_destroy();
}
session_start();
$login = clean($_REQUEST["user"]);
$password = clean($_REQUEST["password"]);