# SSO via external site vs. subfolder setup

**URL:** <https://meta.discourse.org/t/sso-via-external-site-vs-subfolder-setup/40576>\
**Category:** SSO\
**Created:** [2016 年 3 月 4 日午後 5:29 UTC](https://meta.discourse.org/t/sso-via-external-site-vs-subfolder-setup/40576 "2016-03-04T17:29:00Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![thabbs](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thabbs/32/82150_2.png) [@thabbs](https://meta.discourse.org/u/thabbs)\
**Post date:** [2016 年 3 月 4 日午後 9:32 UTC](https://meta.discourse.org/t/sso-via-external-site-vs-subfolder-setup/40576/3 "2016-03-04T21:32:04Z")

</div>

mhm, I’m a little bit unsatisfied and confused, but I believe that I have found a reason and a workaround for this:

After playing around heavily with several installations of Discourse in my environment the last days it seems that I hit a cookie related bug.

I’ve found the following cookies doubled each, set for the very same domain and path:

- `_t`
- `_forum_session`

This occured in two different browsers (Firefox and Chrome). Obviously the browsers or Discourse were not able to handle the duplication of cookies. I have no clue how this can happen.

I have removed all occurancies of `_t` and `_forum_session` and was able to log in successfully via SSO.

I’m not sure if anybody is willing to file a bug for this and to reproduce this behavior.

It has taken away two days of my live - hence probably it could be a good idea to consider having a closer look at the Discourse cookie management.

---

_[View the full topic](https://meta.discourse.org/t/sso-via-external-site-vs-subfolder-setup/40576)._
