added session get and set for twig function