# Как выйти из системы, если пользователь не известен?

**URL:** https://meta.discourse.org/t/how-to-log-out-user-if-i-dont-know-them/145273
**Category:** Development
**Created:** [23.Март.2020 17:20:20 UTC](https://meta.discourse.org/t/how-to-log-out-user-if-i-dont-know-them/145273 "2020-03-23T17:20:20Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [23.Март.2020 22:10:36 UTC](https://meta.discourse.org/t/how-to-log-out-user-if-i-dont-know-them/145273/4 "2020-03-23T22:10:36Z")

</div>

Этот трюк всё ещё должен работать:

> [@Is there a "log\_in" SSO API endpoint?](https://meta.discourse.org/t/is-there-a-log-in-sso-api-endpoint/33545/2?u=riking):
>
> You can’t set cookies for another domain from the server, so that wouldn’t work stuck_out_tongue Try giving the user a page with this on it: \<embed src="https://discourse.example.com/session/sso" onload="window.location='/login\_finished'" width=0 height=0\> \<div style="display:flex;justify-content:center;align-items:center"\> \<div class="loading-spinner"\> \<h1\>Please wait, logging you into Discourse...\</h1\> \<aside\>\<a href="/login\_finished"\>Click here if you don't want to wait\</a\>\</aside\> \<…

---

_[View the full topic](https://meta.discourse.org/t/how-to-log-out-user-if-i-dont-know-them/145273)._
