api: use tt-rss session storage
This commit is contained in:
parent
4864633612
commit
964f153371
2 changed files with 6 additions and 1 deletions
|
@ -10,9 +10,12 @@
|
||||||
|
|
||||||
chdir("..");
|
chdir("..");
|
||||||
|
|
||||||
|
define('TTRSS_SESSION_NAME', 'ttrss_api_sid');
|
||||||
|
|
||||||
require_once "db.php";
|
require_once "db.php";
|
||||||
require_once "db-prefs.php";
|
require_once "db-prefs.php";
|
||||||
require_once "functions.php";
|
require_once "functions.php";
|
||||||
|
require_once "sessions.php";
|
||||||
|
|
||||||
define('AUTH_DISABLE_OTP', true);
|
define('AUTH_DISABLE_OTP', true);
|
||||||
|
|
||||||
|
|
|
@ -104,5 +104,7 @@
|
||||||
|
|
||||||
session_set_cookie_params(SESSION_COOKIE_LIFETIME);
|
session_set_cookie_params(SESSION_COOKIE_LIFETIME);
|
||||||
|
|
||||||
|
if (!defined('TTRSS_SESSION_NAME') || TTRSS_SESSION_NAME != 'ttrss_api_sid') {
|
||||||
session_start();
|
session_start();
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in a new issue