Skip to content
Browse files

Fixed #61: persistent cookie with expiration

  • Loading branch information...
1 parent 0fbe0da commit 928d0de2c2c5154a5fb563756486fbcc4b634d96 @Shu-Ji Shu-Ji committed Mar 1, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 web/session.py
View
2 web/session.py
@@ -140,6 +140,8 @@ def _save(self):
self._setcookie(self.session_id, expires=-1)
def _setcookie(self, session_id, expires='', **kw):
+ if expires == '':
+ expires = self._config.timeout
cookie_name = self._config.cookie_name
cookie_domain = self._config.cookie_domain
cookie_path = self._config.cookie_path

0 comments on commit 928d0de

Please sign in to comment.
Something went wrong with that request. Please try again.