Skip to content

Commit

Permalink
Check if session started
Browse files Browse the repository at this point in the history
Could be issue for #72 and #73?
  • Loading branch information
barryvdh committed Jan 13, 2014
1 parent 2f9ef53 commit b0d0e1f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Barryvdh/Debugbar/SymfonyHttpDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ function setHeaders(array $headers)
*/
function isSessionStarted()
{
$this->session->start();
if(!$this->session->isStarted()){
$this->session->start();
}
return $this->session->isStarted();
}

Expand Down

0 comments on commit b0d0e1f

Please sign in to comment.