diff options
author | Thomas Citharel <tcit@tcit.fr> | 2015-06-11 22:58:01 +0200 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2015-06-11 22:58:01 +0200 |
commit | c57e38595e78b63e54e392d3d17ffe6d98872981 (patch) | |
tree | c531cfe6c47f471425398381b5f7d431e03ed6a6 /inc/3rdparty/Session.class.php | |
parent | c0d4c895a4b0c34a462d70cbb17385de772e4e90 (diff) | |
download | wallabag-c57e38595e78b63e54e392d3d17ffe6d98872981.tar.gz wallabag-c57e38595e78b63e54e392d3d17ffe6d98872981.tar.zst wallabag-c57e38595e78b63e54e392d3d17ffe6d98872981.zip |
bring back long lasting session...maybe
Diffstat (limited to 'inc/3rdparty/Session.class.php')
-rw-r--r-- | inc/3rdparty/Session.class.php | 4 |
1 files changed, 2 insertions, 2 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(); |