Commit 964f1533 authored by Andrew Dolgov's avatar Andrew Dolgov

api: use tt-rss session storage

parent 48646336
......@@ -10,9 +10,12 @@
chdir("..");
define('TTRSS_SESSION_NAME', 'ttrss_api_sid');
require_once "db.php";
require_once "db-prefs.php";
require_once "functions.php";
require_once "sessions.php";
define('AUTH_DISABLE_OTP', true);
......
......@@ -104,5 +104,7 @@
session_set_cookie_params(SESSION_COOKIE_LIFETIME);
session_start();
if (!defined('TTRSS_SESSION_NAME') || TTRSS_SESSION_NAME != 'ttrss_api_sid') {
session_start();
}
?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment