diff --git a/book/controller.rst b/book/controller.rst index 0a1a5ef8298..090983770d5 100644 --- a/book/controller.rst +++ b/book/controller.rst @@ -605,7 +605,7 @@ from any controller:: $filters = $session->get('filters', array()); } -These attributes will remain on the user for the remainder of that user's +These attributes will remain in the session for the remainder of that user's session. .. index:: @@ -821,7 +821,7 @@ method to check the CSRF token:: } // isCsrfTokenValid() is equivalent to: - // $this->get('security.csrf.token_manager')->isTokenValid() + // $this->get('security.csrf.token_manager')->isTokenValid( // new \Symfony\Component\Security\Csrf\CsrfToken\CsrfToken('token_id', $token) // );