# Problem with WordPress \<\> Discourse SSO for logged in users

**URL:** <https://meta.discourse.org/t/problem-with-wordpress-discourse-sso-for-logged-in-users/257770>\
**Category:** WordPress\
**Created:** [March 11, 2023, 2:55am UTC](https://meta.discourse.org/t/problem-with-wordpress-discourse-sso-for-logged-in-users/257770 "2023-03-11T02:55:37Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [March 11, 2023, 12:34pm UTC](https://meta.discourse.org/t/problem-with-wordpress-discourse-sso-for-logged-in-users/257770/4 "2023-03-11T12:34:30Z")

</div>

> [@smileBeda](#):
>
> While it still feels weird, I’ve gone ahead and added a redirect to the `session/sso?return_path=` on user login in wp

Typically I advise clients against doing an automatic redirect like this. I understand why you feel this is an issue, it’s a not uncommon feeling, however the standard approach works just fine for many sites as large, or larger, than yours and the automatic redirect may not work in some scenarios, leading to poor UX.

The login-once-login-automatically-everywhere you’re expecting is how interconnected services like Meta (e.g. login to Facebook and you’re logged into Instagram) sometimes work because they’re centrally controlled platforms (albeit even centralised services will sometimes work the same way [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) does too).

In contrast, you’re dealing with independent open-source software frameworks here (i.e. Wordpress and Discourse). They can be setup to effectively work in the way you’re expecting, but it requires specific custom work that takes into account your specific use case. It’ll never be how an authentication system like [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) which serves thousands of different use cases, works.

> [@smileBeda](#):
>
> Do you see any issue enabling this setting?

No, with the caveat that I would question the premise of needing it. But without more information I can’t see an issue with using it.

---

_[View the full topic](https://meta.discourse.org/t/problem-with-wordpress-discourse-sso-for-logged-in-users/257770)._
