1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 08:25:55 +00:00

only autostart session if login cookie exists

This commit is contained in:
Andrew Dolgov
2013-03-28 08:06:21 +04:00
parent f820f205d0
commit 5160620c8a
4 changed files with 8 additions and 3 deletions

View File

@@ -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();
}
}
?>