use ``session`` rather than ``app.session`` to be consistent with the PHP example. The ``app`` global variable giving access to a few objects (including the Session) is specific to the fullstack framework as it is part of FrameworkBundle: https://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/FrameworkBundle/Templating/GlobalVariables.php