Skip to content

Commit

Permalink
EZEE-2313: [eZ Reco] Session ID is empty when Symfony AuthenticationG…
Browse files Browse the repository at this point in the history
…uard is used (#116)
  • Loading branch information
kmadejski authored Sep 12, 2018
1 parent 1284272 commit 361537c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions EventListener/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ public function onSecurityInteractiveLogin(InteractiveLoginEvent $event)
}

if (!$event->getRequest()->cookies->has('yc-session-id')) {
if (!$this->session->isStarted()) {
$this->session->start();
}
$event->getRequest()->cookies->set('yc-session-id', $this->session->getId());
}

Expand Down

0 comments on commit 361537c

Please sign in to comment.