# Wp\_discourse 无法记住登录状态

**URL:** <https://meta.discourse.org/t/wp-discourse-unable-to-remember-login-status/267663>\
**Category:** WordPress\
**Created:** [2023年六月8日 13:11 UTC](https://meta.discourse.org/t/wp-discourse-unable-to-remember-login-status/267663 "2023-06-08T13:11:51Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)\
**Post date:** [2023年六月9日 07:33 UTC](https://meta.discourse.org/t/wp-discourse-unable-to-remember-login-status/267663/2 "2023-06-09T07:33:28Z")

</div>

嘿 @shihuang214，

这是我对您问题的理解，但如果我错了，请纠正我：

1. 您使用 [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true)，以 Discourse 作为提供商，WordPress 作为客户端，并使用 [WP Discourse](https://github.com/discourse/wp-discourse) 插件。
2. 您希望 WordPress 身份验证在不同的浏览器会话中保持持久。

您遇到的具体问题与 [WP Discourse](https://github.com/discourse/wp-discourse) 插件和 [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) 基本无关。一旦您通过 [WP Discourse](https://github.com/discourse/wp-discourse) 中的 [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) 登录，登录状态（即您是否保持登录）由 WordPress 本身处理。请查看类似以下的解决方案：

> **[Persistent Login](https://wordpress.org/plugins/wp-persistent-login/)**
>
> Persistent Login keeps users logged into your website, limits the number of active logins allowed at one time and alerts users of new devices logging …

---

_[View the full topic](https://meta.discourse.org/t/wp-discourse-unable-to-remember-login-status/267663)._
