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
Branches
Tags
No related merge requests found
...@@ -67,10 +67,11 @@ class SessionHandlerPHP extends SessionHandler ...@@ -67,10 +67,11 @@ class SessionHandlerPHP extends SessionHandler
session_write_close(); session_write_close();
} }
if (!empty($this->cookie_name)) {
session_name($this->cookie_name); if (empty($this->cookie_name)) {
} else {
$this->cookie_name = session_name(); $this->cookie_name = session_name();
} elseif (!headers_sent() || version_compare(PHP_VERSION, '7.2', '<')) {
session_name($this->cookie_name);
} }
$params = $this->getCookieParams(); $params = $this->getCookieParams();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment