Explorar el Código

Merge pull request #1236 from bisherbas/patch-1

Update session start condition
ArthurHoaro hace 5 años
padre
commit
d53d9d01f7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      index.php

+ 1 - 1
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();
 }