# Discourse 成员被登出——如何解决？

**URL:** <https://meta.discourse.org/t/discourse-members-being-logged-out-how-to-fix/152514>\
**Category:** Product Support\
**Created:** [2020 年5 月 24 日 10:46 UTC](https://meta.discourse.org/t/discourse-members-being-logged-out-how-to-fix/152514 "2020-05-24T10:46:48Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

作者： ![pnoeric](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pnoeric/32/177144_2.png) [@pnoeric](https://meta.discourse.org/u/pnoeric)\
发布日期： [2020 年5 月 25 日 07:51 UTC](https://meta.discourse.org/t/discourse-members-being-logged-out-how-to-fix/152514/12 "2020-05-25T07:51:49Z")

</div>

> [@david](#):
>
> 每当主站会话过期时，你都会终止 Discourse 会话。如果移除这部分，我认为设置就会与典型配置一致。
> 
> 当用户 **显式** 从主站退出登录时，你仍然可以调用 /logout。只是不要在会话自然过期时调用它。

明白了——这是个不错的解决方案；我想足够多的成员在登录页面勾选了“保持登录状态”复选框，这样将他们无缝带回主站会很顺畅。如果他们在主站的会话已过期，此时（在后台）就会立即重新登录。嗯。

> [@bts](#):
>
> 从原帖看不太清楚，但你们是在运营一个围绕分享超级敏感信息的专门化站点，还是大多数用户从共享的公共计算机登录之类的？

这是一个面向对隐私极为敏感的特定人群的网站。不过我明白你的意思，我想我可以按照你（和 David）的建议去做。

**非常感谢你们两位。** 我之前对这里的“大局”或如何处理此类场景缺乏清晰认识……现在我了解了 :-)，也看到了针对我情况的几种可能解决方案。非常感谢！

---

_[View the full topic](https://meta.discourse.org/t/discourse-members-being-logged-out-how-to-fix/152514)._
