# Issues using SSO in custom web app

**URL:** <https://meta.discourse.org/t/issues-using-sso-in-custom-web-app/77429>\
**Category:** Development\
**Created:** [6. Januar 2018 um 06:30 UTC](https://meta.discourse.org/t/issues-using-sso-in-custom-web-app/77429 "2018-01-06T06:30:49Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![supernaturally](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@supernaturally](https://meta.discourse.org/u/supernaturally)\
**Post date:** [6. Januar 2018 um 06:30 UTC](https://meta.discourse.org/t/issues-using-sso-in-custom-web-app/77429/1 "2018-01-06T06:30:49Z")

</div>

Potential issue for users on shared devices -

I’ve noticed that Discourse will not log out an authenticated user if a different user is attempting SSO in the same browser session, until that user physically clicks “logout” inside of Discourse’s dropdown menu (i.e. If Joe logs out of my web app, and Sally then logs into my web app…Sally will still enter Joe’s authenticated Discourse instance after SSO until Sally manually logs out from Discourse’s dropdown menu, at which point she is then authenticated back into Discourse under the correct account). Is this a Discourse issue? We can always use the API to logout a user, but that wouldn’t help in the event of a session timeout within my web app unless the Discourse session times out at the same time. Any ideas?

---

_[View the full topic](https://meta.discourse.org/t/issues-using-sso-in-custom-web-app/77429)._
