PHP Warning: session_start(): Cannot send session cookie
-
I had an issue with line 8 in includes/multisite.php
The error.log file shows
PHP Warning: session_start(): Cannot send session cookie – headers already sent in /public_html/wp-content/plugins/ad-blocking-detector/includes/multisite.php on line 8Please correct this in further releases.
Recommended way for versions of PHP >= 5.4.0
if (session_status() == PHP_SESSION_NONE) {
session_start();
}
Source: https://www.php.net/manual/en/function.session-status.php
For versions of PHP < 5.4.0if(session_id() == ”) {
session_start();
}
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘PHP Warning: session_start(): Cannot send session cookie’ is closed to new replies.