summaryrefslogtreecommitdiff
path: root/include/sessions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-09-19 12:45:01 +0400
committerAndrew Dolgov <[email protected]>2012-09-19 12:45:01 +0400
commit964f1533719ea43a5075c08dd227a01a47f5b2aa (patch)
tree5a986b76fba49875908070b8b94f1369c24bd9c7 /include/sessions.php
parent4864633612ab8619e0f2664474b4dce8e74ac81f (diff)
api: use tt-rss session storage
Diffstat (limited to 'include/sessions.php')
-rw-r--r--include/sessions.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/sessions.php b/include/sessions.php
index 5aeda62ff..e692d1169 100644
--- a/include/sessions.php
+++ b/include/sessions.php
@@ -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();
+ }
?>