{"action":"created","issue":{"url":"https://api.github.com/repos/couchbase/sync_gateway/issues/1201","labels_url":"https://api.github.com/repos/couchbase/sync_gateway/issues/1201/labels{/name}","comments_url":"https://api.github.com/repos/couchbase/sync_gateway/issues/1201/comments","events_url":"https://api.github.com/repos/couchbase/sync_gateway/issues/1201/events","html_url":"https://github.com/couchbase/sync_gateway/issues/1201","id":111661883,"number":1201,"title":"GET /{db}/_session/{session-id} by Admin REST API return 200 when session is expired","user":{"login":"atom992","id":2324592,"avatar_url":"https://avatars.githubusercontent.com/u/2324592?v=3","gravatar_id":"","url":"https://api.github.com/users/atom992","html_url":"https://github.com/atom992","followers_url":"https://api.github.com/users/atom992/followers","following_url":"https://api.github.com/users/atom992/following{/other_user}","gists_url":"https://api.github.com/users/atom992/gists{/gist_id}","starred_url":"https://api.github.com/users/atom992/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atom992/subscriptions","organizations_url":"https://api.github.com/users/atom992/orgs","repos_url":"https://api.github.com/users/atom992/repos","events_url":"https://api.github.com/users/atom992/events{/privacy}","received_events_url":"https://api.github.com/users/atom992/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-15T17:00:31Z","updated_at":"2015-10-15T17:31:22Z","closed_at":null,"body":"I am using SG 1.1.1-10 + CB 3.1.0-1776 Enterprise Edition (build-1776), \r\nwhen I call  /{db}/_session/{session-id} by 4985 with a expired session, I can get 200 response with authentication_handlers/channels etc Info. \r\nwhen a session is expired,I think I should not get the session info."},"comment":{"url":"https://api.github.com/repos/couchbase/sync_gateway/issues/comments/148466762","html_url":"https://github.com/couchbase/sync_gateway/issues/1201#issuecomment-148466762","issue_url":"https://api.github.com/repos/couchbase/sync_gateway/issues/1201","id":148466762,"user":{"login":"adamcfraser","id":8866453,"avatar_url":"https://avatars.githubusercontent.com/u/8866453?v=3","gravatar_id":"","url":"https://api.github.com/users/adamcfraser","html_url":"https://github.com/adamcfraser","followers_url":"https://api.github.com/users/adamcfraser/followers","following_url":"https://api.github.com/users/adamcfraser/following{/other_user}","gists_url":"https://api.github.com/users/adamcfraser/gists{/gist_id}","starred_url":"https://api.github.com/users/adamcfraser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamcfraser/subscriptions","organizations_url":"https://api.github.com/users/adamcfraser/orgs","repos_url":"https://api.github.com/users/adamcfraser/repos","events_url":"https://api.github.com/users/adamcfraser/events{/privacy}","received_events_url":"https://api.github.com/users/adamcfraser/received_events","type":"User","site_admin":false},"created_at":"2015-10-15T17:31:22Z","updated_at":"2015-10-15T17:31:22Z","body":"Session expiry is based on actual expiry (removal) of the document by Couchbase.  If you can still see the session doc in cb, it's not being expired properly.\r\n\r\nThe ttl in the doc looks like the normal default expiry value (24 hours, in nanoseconds).\r\n\r\nThe expiration value looks like tomorrow (at least in my time zone) - are you certain it should be expired based on that date?"}}