Skip to content

Session cookie expiration #61

thinxer opened this Issue May 5, 2011 · 4 comments

4 participants

thinxer commented May 5, 2011

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 May 5, 2011

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)
thinxer commented Aug 26, 2011

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

despens commented Sep 21, 2011

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

Please make it happen. :)

despens commented Oct 25, 2011

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.