In web/session.py, the Session class _save() method is defined as
follows:
def _save(self):
cookie_name = self._config.cookie_name
cookie_domain = self._config.cookie_domain
if not self.get('_killed'):
web.setcookie(cookie_name, self.session_id,
domain=cookie_domain)
self.store[self.session_id] = dict(self)
else:
web.setcookie(cookie_name, self.session_id, expires=-1,
domain=cookie_domain)
The cookie is set without specifying an expiration. So, this cookie
will expire when the user closes the browser. OTOH, the sessions will
likely persist in the Store for much longer as specified by the
timeout config parameter.
Shouldn't the cookie have and expiration and shouldn't it correspond
to the timeouts used for the data Store?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---