mirror of
https://github.com/wallabag/wallabag.git
synced 2025-03-01 17:01:00 +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)
|
public static function init($longlastingsession = false)
|
||||||
{
|
{
|
||||||
//check if session name is correct
|
//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();
|
session_destroy();
|
||||||
}
|
}*/
|
||||||
|
|
||||||
// Force cookie path (but do not change lifetime)
|
// Force cookie path (but do not change lifetime)
|
||||||
$cookie = session_get_cookie_params();
|
$cookie = session_get_cookie_params();
|
||||||
|
|
|
@ -15,7 +15,7 @@ require_once 'inc/poche/global.inc.php';
|
||||||
|
|
||||||
// Start session
|
// Start session
|
||||||
Session::$sessionName = 'wallabag';
|
Session::$sessionName = 'wallabag';
|
||||||
Session::init();
|
Session::init(true);
|
||||||
|
|
||||||
// Let's rock !
|
// Let's rock !
|
||||||
$wallabag = new Poche();
|
$wallabag = new Poche();
|
||||||
|
|
Loading…
Reference in a new issue