bring back long lasting session...maybe

This commit is contained in:
Thomas Citharel 2015-06-11 22:58:01 +02:00
parent c0d4c895a4
commit c57e38595e
2 changed files with 3 additions and 3 deletions

View 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();

View file

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