Skip to content

Commit

Permalink
Alternative approach to session id in CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Sep 6, 2017
1 parent 2dbbc08 commit f3b8dcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Network/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ public function write($name, $value = null)
*/
public function id($id = null)
{
if ($id !== null) {
if ($id !== null && ($this->_isCLI || !headers_sent())) {
session_id($id);
}

Expand Down

0 comments on commit f3b8dcc

Please sign in to comment.