summaryrefslogtreecommitdiff
path: root/include/sessions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-28 08:06:21 +0400
committerAndrew Dolgov <[email protected]>2013-03-28 08:06:21 +0400
commit5160620c8a3c940688f60cc32abb2387a87139dd (patch)
treec11971f065a9772bca5fe1071e4c295f39b9d43b /include/sessions.php
parentf820f205d0ec1c5ce9027e49755fc8642b0c5b42 (diff)
only autostart session if login cookie exists
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 3355ec49e..a83daea82 100644
--- a/include/sessions.php
+++ b/include/sessions.php
@@ -105,6 +105,8 @@
session_set_cookie_params(SESSION_COOKIE_LIFETIME);
if (!defined('TTRSS_SESSION_NAME') || TTRSS_SESSION_NAME != 'ttrss_api_sid') {
- @session_start();
+ if ($_COOKIE[$session_name]) {
+ @session_start();
+ }
}
?>