Ensure there is a session before getting the session id

This commit is contained in:
Francesc Rosàs 2012-07-07 20:30:29 +02:00
parent 22470fdb2c
commit 6d94f3eaa8

View File

@ -50,6 +50,8 @@ class SessionCsrfProvider extends DefaultCsrfProvider
*/ */
protected function getSessionId() protected function getSessionId()
{ {
$this->session->start();
return $this->session->getId(); return $this->session->getId();
} }
} }