Skip to content

Instantly share code, notes, and snippets.

@alxf
Created July 16, 2013 08:52
Show Gist options
  • Save alxf/6007019 to your computer and use it in GitHub Desktop.
Save alxf/6007019 to your computer and use it in GitHub Desktop.
session timeout for webpy.
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