summaryrefslogtreecommitdiff
path: root/docs/narr/sessions.rst
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2015-01-15 13:18:08 -0600
committerMichael Merickel <michael@merickel.org>2015-01-15 13:18:08 -0600
commit64f9cfaf331310cf54285c49d705098aa3d07944 (patch)
treeecfd5935b55a5f8afc536ed0a89c65e3437ee0f5 /docs/narr/sessions.rst
parent2d659e41d01926acaa8670c4d20be20300bcedb7 (diff)
parent47e85294779814f14e02327eb4d378197bbaeb29 (diff)
downloadpyramid-64f9cfaf331310cf54285c49d705098aa3d07944.tar.gz
pyramid-64f9cfaf331310cf54285c49d705098aa3d07944.tar.bz2
pyramid-64f9cfaf331310cf54285c49d705098aa3d07944.zip
Merge pull request #1522 from Kapishin/master
Fix few typos
Diffstat (limited to 'docs/narr/sessions.rst')
-rw-r--r--docs/narr/sessions.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/narr/sessions.rst b/docs/narr/sessions.rst
index 8da743a01..5c103405a 100644
--- a/docs/narr/sessions.rst
+++ b/docs/narr/sessions.rst
@@ -44,7 +44,7 @@ It is digitally signed, however, and thus its data cannot easily be
tampered with.
You can configure this session factory in your :app:`Pyramid` application
-by using the :meth:`pyramid.config.Configurator.set_session_factory`` method.
+by using the :meth:`pyramid.config.Configurator.set_session_factory` method.
.. code-block:: python
:linenos:
@@ -380,7 +380,7 @@ Checking CSRF Tokens Manually
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In request handling code, you can check the presence and validity of a CSRF
-token with :func:`pyramid.session.check_csrf_token(request)``. If the token is
+token with :func:`pyramid.session.check_csrf_token`. If the token is
valid, it will return ``True``, otherwise it will raise ``HTTPBadRequest``.
Optionally, you can specify ``raises=False`` to have the check return ``False``
instead of raising an exception.