Updated twig header extension to use new session class.