{"action":"created","issue":{"url":"https://api.github.com/repos/bbangert/beaker/issues/60","labels_url":"https://api.github.com/repos/bbangert/beaker/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/bbangert/beaker/issues/60/comments","events_url":"https://api.github.com/repos/bbangert/beaker/issues/60/events","html_url":"https://github.com/bbangert/beaker/issues/60","id":29575110,"number":60,"title":"KeyError on session encrypt_key update","user":{"login":"FedericoCeratto","id":91576,"avatar_url":"https://avatars.githubusercontent.com/u/91576?v=3","gravatar_id":"","url":"https://api.github.com/users/FedericoCeratto","html_url":"https://github.com/FedericoCeratto","followers_url":"https://api.github.com/users/FedericoCeratto/followers","following_url":"https://api.github.com/users/FedericoCeratto/following{/other_user}","gists_url":"https://api.github.com/users/FedericoCeratto/gists{/gist_id}","starred_url":"https://api.github.com/users/FedericoCeratto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FedericoCeratto/subscriptions","organizations_url":"https://api.github.com/users/FedericoCeratto/orgs","repos_url":"https://api.github.com/users/FedericoCeratto/repos","events_url":"https://api.github.com/users/FedericoCeratto/events{/privacy}","received_events_url":"https://api.github.com/users/FedericoCeratto/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-03-17T16:23:39Z","updated_at":"2015-01-27T10:41:06Z","closed_at":"2015-01-26T20:39:35Z","body":"Hello,\r\nWhen I restart an application and generate a new encrypt_key without deleting the existing cookies from logged-in browsers I get the following error:\r\n<pre>\r\n  File \"/usr/lib/python2.7/dist-packages/beaker/session.py\", line 651, in __getattr__\r\n    return getattr(self._session(), attr)\r\n  File \"/usr/lib/python2.7/dist-packages/beaker/session.py\", line 644, in _session\r\n    self.__dict__['_sess'] = CookieSession(req, **params)\r\n  File \"/usr/lib/python2.7/dist-packages/beaker/session.py\", line 531, in __init__\r\n    self['_accessed_time'] > self.timeout:\r\nKeyError: '_accessed_time'\r\n</pre>\r\n\r\nMaybe Beaker should detect this condition and ignore the old cookie, or delete it, or raise a specific exception.\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/bbangert/beaker/issues/comments/71624689","html_url":"https://github.com/bbangert/beaker/issues/60#issuecomment-71624689","issue_url":"https://api.github.com/repos/bbangert/beaker/issues/60","id":71624689,"user":{"login":"amol-","id":601423,"avatar_url":"https://avatars.githubusercontent.com/u/601423?v=3","gravatar_id":"","url":"https://api.github.com/users/amol-","html_url":"https://github.com/amol-","followers_url":"https://api.github.com/users/amol-/followers","following_url":"https://api.github.com/users/amol-/following{/other_user}","gists_url":"https://api.github.com/users/amol-/gists{/gist_id}","starred_url":"https://api.github.com/users/amol-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amol-/subscriptions","organizations_url":"https://api.github.com/users/amol-/orgs","repos_url":"https://api.github.com/users/amol-/repos","events_url":"https://api.github.com/users/amol-/events{/privacy}","received_events_url":"https://api.github.com/users/amol-/received_events","type":"User","site_admin":false},"created_at":"2015-01-27T10:41:06Z","updated_at":"2015-01-27T10:41:06Z","body":"I plan to make a bugfix release with those fixes and then switch working to the native python3 support which will lead to the successive major release."}}