diff options
-rw-r--r-- | inc/3rdparty/Session.class.php | 4 | ||||
-rwxr-xr-x | 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 | |||
51 | public static function init($longlastingsession = false) | 51 | public static function init($longlastingsession = false) |
52 | { | 52 | { |
53 | //check if session name is correct | 53 | //check if session name is correct |
54 | if ( (session_id() && !empty(self::$sessionName) && session_name()!=self::$sessionName) || $longlastingsession ) { | 54 | /*if ( (session_id() && !empty(self::$sessionName) && session_name()!=self::$sessionName) || $longlastingsession ) { |
55 | session_destroy(); | 55 | session_destroy(); |
56 | } | 56 | }*/ |
57 | 57 | ||
58 | // Force cookie path (but do not change lifetime) | 58 | // Force cookie path (but do not change lifetime) |
59 | $cookie = session_get_cookie_params(); | 59 | $cookie = session_get_cookie_params(); |
@@ -15,7 +15,7 @@ require_once 'inc/poche/global.inc.php'; | |||
15 | 15 | ||
16 | // Start session | 16 | // Start session |
17 | Session::$sessionName = 'wallabag'; | 17 | Session::$sessionName = 'wallabag'; |
18 | Session::init(); | 18 | Session::init(true); |
19 | 19 | ||
20 | // Let's rock ! | 20 | // Let's rock ! |
21 | $wallabag = new Poche(); | 21 | $wallabag = new Poche(); |