Skip to content

Commit

Permalink
Merge pull request #67 from kamilmusial/master
Browse files Browse the repository at this point in the history
EZS-822 Cannot log in into ezstudio demo installation
  • Loading branch information
kamilmusial authored Jun 27, 2016
2 parents 3752084 + 7caeb36 commit ace7978
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion EventListener/SessionBackup.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ public function __construct(Session $session)
*/
public function onKernelRequest(GetResponseEvent $event)
{
if ($this->session->get('yc-session-id', null) == null) {
if (!$this->session->isStarted()) {
return;
}

if (!$this->session->has('yc-session-id')) {
$this->session->set('yc-session-id', $this->session->getId());
}
}
Expand Down

0 comments on commit ace7978

Please sign in to comment.