Symfony2: check whether session exists or not Symfony2: check whether session exists or not symfony symfony

Symfony2: check whether session exists or not


$this->container->get('session')->isStarted()

is what you're looking for.