# Is there an endpoint to check if a user is logged in

**URL:** <https://meta.discourse.org/t/is-there-an-endpoint-to-check-if-a-user-is-logged-in/72780>\
**Category:** Development\
**Created:** [2017 年 10 月 25 日午後 6:26 UTC](https://meta.discourse.org/t/is-there-an-endpoint-to-check-if-a-user-is-logged-in/72780 "2017-10-25T18:26:47Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![BunnyMan](https://avatars.discourse-cdn.com/v4/letter/b/a8b319/32.png) [@BunnyMan](https://meta.discourse.org/u/BunnyMan)\
**Post date:** [2020 年 1 月 21 日午前 5:41 UTC](https://meta.discourse.org/t/is-there-an-endpoint-to-check-if-a-user-is-logged-in/72780/18 "2020-01-21T05:41:44Z")

</div>

返信ありがとうございます！本当に感謝しています。

> [@j127](#):
>
> 外部サイトからのログアウトは、[Discourse API](https://docs.discourse.org/#tag/Users/paths/~1admin~1users~1%7Bid%7D~1log_out/post) を使用して行います。

はい、今では明確になりました。API を使用したログアウトにおける唯一の注意点として、ユーザーはすべてのセッション（すべてのデバイス上のセッション）からログアウトされてしまいます。これは、API が現在のブラウザのセッションと他のログイン中のブラウザのセッションを区別できないためです。

---

_[View the full topic](https://meta.discourse.org/t/is-there-an-endpoint-to-check-if-a-user-is-logged-in/72780)._
