Skip to content
Snippets Groups Projects
Unverified Commit b37306e3 authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo
Browse files

bugfix: Fix warning persisting in logs

This (finally!) resolves #1176
parent aece55e7
No related branches found
No related tags found
No related merge requests found
......@@ -67,10 +67,11 @@ class SessionHandlerPHP extends SessionHandler
session_write_close();
}
if (!empty($this->cookie_name)) {
session_name($this->cookie_name);
} else {
if (empty($this->cookie_name)) {
$this->cookie_name = session_name();
} elseif (!headers_sent() || version_compare(PHP_VERSION, '7.2', '<')) {
session_name($this->cookie_name);
}
$params = $this->getCookieParams();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment