Skip to content

Session cookie expiration #61

Open
thinxer opened this Issue May 5, 2011 · 4 comments

4 participants

@thinxer
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.

http://groups.google.com/group/webpy/browse_thread/thread/4a6631f8a35b8372

https://bugs.launchpad.net/webpy/+bug/305360

@anandology anandology was assigned May 5, 2011
@indeyets

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

Yes it would work. But why not add a 'persistent' option just like this: https://bugs.launchpad.net/webpy/+bug/305360.
It would be much easier for beginners, yet not many lines of code for web.py.

@despens
despens commented Sep 21, 2011

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

Please make it happen. :)

@despens
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.