Permalink
Browse files

EZEE-2313: [eZ Reco] Session ID is empty when Symfony AuthenticationG…

…uard is used (#116)
  • Loading branch information...
kmadejski committed Sep 12, 2018
1 parent 1284272 commit 361537c50892b87dca672c42781188c27c823c5b
Showing with 3 additions and 0 deletions.
  1. +3 −0 EventListener/Login.php
View
@@ -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());
}

0 comments on commit 361537c

Please sign in to comment.