Skip to content
Permalink
Browse files

Revert changes made in 2dbbc08

They result in headers_sent() warnings in PHP7.2 as session_ids cannot
be changed there.

Refs #11158
  • Loading branch information...
markstory committed Sep 19, 2017
1 parent 9fa64a3 commit 5b84009667b785f2d355f350f44797f19743e5ba
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Network/Session.php
@@ -455,7 +455,7 @@ public function write($name, $value = null)
*/
public function id($id = null)
{
if ($id !== null && ($this->_isCLI || !headers_sent())) {
if ($id !== null && !headers_sent()) {
session_id($id);
}

0 comments on commit 5b84009

Please sign in to comment.
You can’t perform that action at this time.