Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Session cookie expiration #61

thinxer opened this Issue · 4 comments

4 participants


Again, on the session cookie, i'm requesting for a persistent cookie with expiration rather than cookies that expire on browser close.

There has been some old threads, however i didn't see the reason why this feature could not be added.

@anandology anandology was assigned

easy "in-project" fix:

class Session(web.session.Session):
    def _setcookie(self, session_id, expires='', **kw):
        if expires == '':
            expires = self._config.timeout

        super(Session, self)._setcookie(session_id, expires, **kw)

Yes it would work. But why not add a 'persistent' option just like this:
It would be much easier for beginners, yet not many lines of code for


I just filed a new issue with the same request: #99

Please make it happen. :)


I would love to see this change finally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.