Skip to content

Commit

Permalink
Session: removed duplicated warning about sent headers
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jun 6, 2016
1 parent 4fb8860 commit 094bb8f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Http/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -537,10 +537,6 @@ public function setHandler(\SessionHandlerInterface $handler)
*/
private function sendCookie()
{
if (!headers_sent() && ob_get_level() && ob_get_length()) {
trigger_error('Possible problem: you are starting session while already having some data in output buffer. This may not work if the outputted data grows. Try starting the session earlier.');
}

$cookie = $this->getCookieParameters();
$this->response->setCookie(
session_name(), session_id(),
Expand Down

0 comments on commit 094bb8f

Please sign in to comment.