Is there a way to check if a session exists or not?
I tried this method, but it always gives me “Bravo”. Answer:
$session = $this->getRequest()->hasPreviousSession(); if($session) { return new Response('Bravo !'); } else { return new Response('Oooops !'); }
source share