updated due to changes in Symfony2 session object