Add session function to Twig