# Usare Discourse come SSO: controllare il logout?

**URL:** <https://meta.discourse.org/t/using-discourse-as-sso-control-logout/89209>\
**Category:** Product Support\
**Created:** [5 Giugno 2018, 8:38pm UTC](https://meta.discourse.org/t/using-discourse-as-sso-control-logout/89209 "2018-06-05T20:38:16Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Vaping\_Community](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vaping_community/32/89248_2.png) [@Vaping\_Community](https://meta.discourse.org/u/Vaping_Community)\
**Post date:** [6 Giugno 2018, 8:34am UTC](https://meta.discourse.org/t/using-discourse-as-sso-control-logout/89209/3 "2018-06-06T08:34:13Z")

</div>

Mine is set to 1440, when I get “logged out” I just see a white screen, I’ll do some checks today but I’m not setting my own cookies only sessions to verify `loggged_in` in my app and those shouldn’t expire until browser closed.

How it works currently (using the PHP script).

User clicks login button - PHP script does its thing - you login at discourse - if that is successful - set the sessions.

Maybe there is a better way to do it, I’m not sure.

---

_[View the full topic](https://meta.discourse.org/t/using-discourse-as-sso-control-logout/89209)._
