Skip to content

Commit

Permalink
Merge pull request #11158 from cakephp/dereuromark-patch-1
Browse files Browse the repository at this point in the history
Fix CLI session ID to be set, resolves regression.
  • Loading branch information
markstory committed Sep 7, 2017
2 parents c9ec7af + f3b8dcc commit 6d25953
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Network/Session.php
Expand Up @@ -455,7 +455,7 @@ public function write($name, $value = null)
*/
public function id($id = null)
{
if ($id !== null && !headers_sent()) {
if ($id !== null && ($this->_isCLI || !headers_sent())) {
session_id($id);
}

Expand Down

0 comments on commit 6d25953

Please sign in to comment.