Suppress session start PHP warning (#1405)

This commit is contained in:
Alex Tselegidis 2023-10-30 10:56:58 +01:00
parent bcf03a4b90
commit 04a63fd802

View file

@ -124,7 +124,7 @@ class CI_Session {
unset($_COOKIE[$this->_config['cookie_name']]); unset($_COOKIE[$this->_config['cookie_name']]);
} }
session_start(); @session_start();
// Is session ID auto-regeneration configured? (ignoring ajax requests) // Is session ID auto-regeneration configured? (ignoring ajax requests)
if ((empty($_SERVER['HTTP_X_REQUESTED_WITH']) OR strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) !== 'xmlhttprequest') if ((empty($_SERVER['HTTP_X_REQUESTED_WITH']) OR strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) !== 'xmlhttprequest')