diff options
author | ArthurHoaro <arthur@hoa.ro> | 2018-11-15 20:10:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-15 20:10:47 +0100 |
commit | d53d9d01f79999fe4bf193c530872aff72cb00cc (patch) | |
tree | 6cb00ddfc70b93b99ad2b12a0490e21cb8f3f6b1 /index.php | |
parent | a605982fa9b9a638c801c9d6dd712d9fca6af60d (diff) | |
parent | f6380409ac0b6ae1368d89ca749c139183e7b02e (diff) | |
download | Shaarli-d53d9d01f79999fe4bf193c530872aff72cb00cc.tar.gz Shaarli-d53d9d01f79999fe4bf193c530872aff72cb00cc.tar.zst Shaarli-d53d9d01f79999fe4bf193c530872aff72cb00cc.zip |
Merge pull request #1236 from bisherbas/patch-1
Update session start condition
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -111,7 +111,7 @@ ini_set('session.use_trans_sid', false); | |||
111 | 111 | ||
112 | session_name('shaarli'); | 112 | session_name('shaarli'); |
113 | // Start session if needed (Some server auto-start sessions). | 113 | // Start session if needed (Some server auto-start sessions). |
114 | if (session_id() == '') { | 114 | if (session_status() == PHP_SESSION_NONE) { |
115 | session_start(); | 115 | session_start(); |
116 | } | 116 | } |
117 | 117 | ||