]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
bring back long lasting session...maybe
authorThomas Citharel <tcit@tcit.fr>
Thu, 11 Jun 2015 20:58:01 +0000 (22:58 +0200)
committerThomas Citharel <tcit@tcit.fr>
Thu, 11 Jun 2015 20:58:01 +0000 (22:58 +0200)
inc/3rdparty/Session.class.php
index.php

index b56e4c545b23fa815d53c63b7c8e2a66e33cd0b7..6ff73a768fe9c926c41f451eb5765544ed9c15cb 100644 (file)
@@ -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();
index 7e4fc600147a872b63903d9ad25dd3627a4e2bdb..df70e413c3c6eb6615e6622bfc052fa30fd9f60a 100755 (executable)
--- 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();