{"action":"opened","issue":{"url":"https://api.github.com/repos/icza/session/issues/2","repository_url":"https://api.github.com/repos/icza/session","labels_url":"https://api.github.com/repos/icza/session/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/icza/session/issues/2/comments","events_url":"https://api.github.com/repos/icza/session/issues/2/events","html_url":"https://github.com/icza/session/issues/2","id":181804764,"number":2,"title":"memcacheStore Get load logic wrong","user":{"login":"tobytraylor","id":8820598,"avatar_url":"https://avatars.githubusercontent.com/u/8820598?v=3","gravatar_id":"","url":"https://api.github.com/users/tobytraylor","html_url":"https://github.com/tobytraylor","followers_url":"https://api.github.com/users/tobytraylor/followers","following_url":"https://api.github.com/users/tobytraylor/following{/other_user}","gists_url":"https://api.github.com/users/tobytraylor/gists{/gist_id}","starred_url":"https://api.github.com/users/tobytraylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobytraylor/subscriptions","organizations_url":"https://api.github.com/users/tobytraylor/orgs","repos_url":"https://api.github.com/users/tobytraylor/repos","events_url":"https://api.github.com/users/tobytraylor/events{/privacy}","received_events_url":"https://api.github.com/users/tobytraylor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-08T04:56:26Z","updated_at":"2016-10-08T04:56:26Z","closed_at":null,"body":"You need to swap After to Before\r\n\r\n```\r\nif e.Expires.Before(time.Now()) {\r\n   // Session expired.\r\n   datastore.Delete(s.ctx, key) // Omitting error check...\r\n   return nil\r\n}\r\n```\r\n\r\nEffect of the current code is always to delete a valid session if the memcache is cleared.  "}}
{"actor":{"display_login":"tobytraylor"}}