Steve Piercy
2014-11-10 c6e8d1be892efefb014400d862bb8721e9eebf3f
Backport from master:
- Clarify a previously-implied detail of the ``ISession.invalidate`` API documentation.
1 files modified
8 ■■■■ changed files
pyramid/interfaces.py 8 ●●●● patch | view | raw | blame | history
pyramid/interfaces.py
@@ -910,7 +910,13 @@
        ``invalidate`` is implementation-dependent, but it should have
        the effect of completely dissociating any data stored in the
        session with the current request.  It might set response
        values (such as one which clears a cookie), or it might not."""
        values (such as one which clears a cookie), or it might not.
        An invalidated session may be used after the call to ``invalidate``
        with the effect that a new session is created to store the data. This
        enables workflows requiring an entirely new session, such as in the
        case of changing privilege levels or preventing fixation attacks.
        """
    def changed():
        """ Mark the session as changed. A user of a session should