SessionInterface object set and get method is used to set and get sessions in Symfony2.Below look be ...