X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=index.php;h=82285dd94ec896c8b5874e2146f151b27e8fda61;hb=04ec8fedd91642d4c0fc96258868086b8a51c899;hp=b702bd133bc7023c7f9c5d63396754a80f272d51;hpb=e95247d41dbe3b46c83d97f2a9d0e7bd1194bf08;p=github%2Fshaarli%2FShaarli.git diff --git a/index.php b/index.php index b702bd13..82285dd9 100644 --- a/index.php +++ b/index.php @@ -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(); }