# 在 Discourse 中自动登录 WordPress 用户

**URL:** https://meta.discourse.org/t/auto-login-wp-users-in-discourse/118882
**Category:** WordPress
**Created:** [2019年五月28日 14:50 UTC](https://meta.discourse.org/t/auto-login-wp-users-in-discourse/118882 "2019-05-28T14:50:45Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![dylanb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dylanb/32/139102_2.png) [@dylanb](https://meta.discourse.org/u/dylanb)
#### Post date: [2019年五月28日 14:50 UTC](https://meta.discourse.org/t/auto-login-wp-users-in-discourse/118882/1 "2019-05-28T14:50:45Z")

</div>

Apologies if I’m just missing a setting here. I am testing out WP as SSO Provider and things appear to be working properly but when a user navigates from my WP site to Discourse, they still have to click “login” on the forum even if they are logged into WP. Is there a way to automatically log them in if they have an active WP session?

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [2019年五月29日 02:58 UTC](https://meta.discourse.org/t/auto-login-wp-users-in-discourse/118882/3 "2019-05-29T02:58:14Z")

</div>

Just send your logged in users to `forum.example.com/login` instead of `forum.example.com`.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2019年六月28日 02:58 UTC](https://meta.discourse.org/t/auto-login-wp-users-in-discourse/118882/4 "2019-06-28T02:58:19Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
