Update session start condition
Recommended method for PHP >= 5.4.0 as seen here https://stackoverflow.com/questions/6249707/check-if-php-session-has-already-started Per https://shaarli.readthedocs.io/en/master/Server-configuration/ Shaarli supports PHP >= 5.6
This commit is contained in:
parent
a605982fa9
commit
f6380409ac
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ ini_set('session.use_trans_sid', false);
|
|||
|
||||
session_name('shaarli');
|
||||
// Start session if needed (Some server auto-start sessions).
|
||||
if (session_id() == '') {
|
||||
if (session_status() == PHP_SESSION_NONE) {
|
||||
session_start();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue