From c57e38595e78b63e54e392d3d17ffe6d98872981 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Thu, 11 Jun 2015 22:58:01 +0200 Subject: [PATCH] bring back long lasting session...maybe --- inc/3rdparty/Session.class.php | 4 ++-- index.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/3rdparty/Session.class.php b/inc/3rdparty/Session.class.php index b56e4c54..6ff73a76 100644 --- a/inc/3rdparty/Session.class.php +++ b/inc/3rdparty/Session.class.php @@ -51,9 +51,9 @@ class Session public static function init($longlastingsession = false) { //check if session name is correct - if ( (session_id() && !empty(self::$sessionName) && session_name()!=self::$sessionName) || $longlastingsession ) { + /*if ( (session_id() && !empty(self::$sessionName) && session_name()!=self::$sessionName) || $longlastingsession ) { session_destroy(); - } + }*/ // Force cookie path (but do not change lifetime) $cookie = session_get_cookie_params(); diff --git a/index.php b/index.php index 7e4fc600..df70e413 100755 --- a/index.php +++ b/index.php @@ -15,7 +15,7 @@ require_once 'inc/poche/global.inc.php'; // Start session Session::$sessionName = 'wallabag'; -Session::init(); +Session::init(true); // Let's rock ! $wallabag = new Poche(); -- 2.41.0