# Syncing login status between WordPress and Discourse, Discourse SSO provider

**URL:** <https://meta.discourse.org/t/syncing-login-status-between-wordpress-and-discourse-discourse-sso-provider/67980>\
**Category:** WordPress\
**Created:** [2017 年 8 月 13 日午後 7:56 UTC](https://meta.discourse.org/t/syncing-login-status-between-wordpress-and-discourse-discourse-sso-provider/67980 "2017-08-13T19:56:09Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![a9udn9u](https://avatars.discourse-cdn.com/v4/letter/a/3e96dc/32.png) [@a9udn9u](https://meta.discourse.org/u/a9udn9u)\
**Post date:** [2017 年 8 月 13 日午後 7:56 UTC](https://meta.discourse.org/t/syncing-login-status-between-wordpress-and-discourse-discourse-sso-provider/67980/1 "2017-08-13T19:56:09Z")

</div>

I’m using the [WP Discourse](https://github.com/discourse/wp-discourse) plugin to connect my WordPress and Discourse sites, using Discourse as the SSO provider, I plan to disable WP login page and only rely on Discourse’s user authentication. Everything worked well except login status is not synced in WordPress. Either login or logout from Discourse, my login status in WordPress doesn’t change automatically, for log in, I have to click the _Login with Discourse_ link (`https://example.com/?discourse_sso=1`). Same thing for logout, have to use WP’s logout link.

Settings in [WP Discourse](https://github.com/discourse/wp-discourse) plugin:  
Set _SSO Secret Key_  
Checked _Enable SSO Client_  
Checked _Add Login Link_  
Checked _Sync Existing Users by Email_

Settings in Discourse:  
Checked _enable sso provider_  
Set _sso secret_

WP version: 4.8.1  
[WP Discourse](https://github.com/discourse/wp-discourse) plugin version: 1.4.3  
Discourse version: 1.9.0.beta5

Is this the expected behavior? If so, what’s the the best way to enable login status syncing?

Thanks!

---

_[View the full topic](https://meta.discourse.org/t/syncing-login-status-between-wordpress-and-discourse-discourse-sso-provider/67980)._
