{"action":"closed","issue":{"url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/1134","labels_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/1134/labels{/name}","comments_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/1134/comments","events_url":"https://api.github.com/repos/IdentityServer/IdentityServer3/issues/1134/events","html_url":"https://github.com/IdentityServer/IdentityServer3/issues/1134","id":65112269,"number":1134,"title":"Signout from Expired Session Forces you to login before logging out","user":{"login":"parkinsona","id":8508456,"avatar_url":"https://avatars.githubusercontent.com/u/8508456?v=3","gravatar_id":"","url":"https://api.github.com/users/parkinsona","html_url":"https://github.com/parkinsona","followers_url":"https://api.github.com/users/parkinsona/followers","following_url":"https://api.github.com/users/parkinsona/following{/other_user}","gists_url":"https://api.github.com/users/parkinsona/gists{/gist_id}","starred_url":"https://api.github.com/users/parkinsona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parkinsona/subscriptions","organizations_url":"https://api.github.com/users/parkinsona/orgs","repos_url":"https://api.github.com/users/parkinsona/repos","events_url":"https://api.github.com/users/parkinsona/events{/privacy}","received_events_url":"https://api.github.com/users/parkinsona/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/IdentityServer/IdentityServer3/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-03-30T00:47:50Z","updated_at":"2015-04-13T00:34:13Z","closed_at":"2015-04-13T00:34:13Z","body":"Hi,\r\n\r\nIn the MVC katana sample, you use the following code to signout.\r\n``` c#\r\n\r\n        public ActionResult Signout()\r\n        {\r\n            Request.GetOwinContext().Authentication.SignOut();\r\n            return Redirect(\"~/\");\r\n        }\r\n```\r\n\r\nIf the user has a non-expired cookie for the RP, or Identity Server then all is good. It will log you out of both Idsvr & the Rp.\r\nHowever, if you are expired in both the RP and Idsvr, it forces the user to login, and will then redirect them to the logout page.\r\n\r\nI'm not sure if this is by design or not. I can see why it has to do this, but is there a way to just skip the logout?\r\n\r\nI tried the following code. Which was handled this scenario.\r\nHowever, if you were expired in the RP, but still active in Idsvr, it wouldn't log you out of idsvr.\r\n\r\n``` c#\r\n    [OverrideAuthorization]\r\n        public ActionResult Signout()\r\n        {\r\n            if (Request.GetOwinContext().Authentication.User.Identity.IsAuthenticated)\r\n            {\r\n                Request.GetOwinContext().Authentication.SignOut();\r\n            }\r\n\r\n            //Request.GetOwinContext().Authentication.SignOut();\r\n            return Redirect(\"~/\");\r\n        }\r\n\r\n```\r\n\r\nIs there a way around this behaviour?"}}