Adding the session in framework