mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-02 22:06:28 +00:00
bring back long lasting session...maybe
This commit is contained in:
parent
c0d4c895a4
commit
c57e38595e
2 changed files with 3 additions and 3 deletions
4
inc/3rdparty/Session.class.php
vendored
4
inc/3rdparty/Session.class.php
vendored
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue