Created
July 16, 2013 08:52
-
-
Save alxf/6007019 to your computer and use it in GitHub Desktop.
session timeout for webpy.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment