# Studio logout problem

**URL:** <https://discuss.openedx.org/t/studio-logout-problem/383>\
**Category:** Site Operations Help\
**Created:** [August 29, 2019, 8:30am UTC](https://discuss.openedx.org/t/studio-logout-problem/383 "2019-08-29T08:30:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![guangyaw](https://avatars.discourse-cdn.com/v4/letter/g/b38774/32.png) [@guangyaw](https://discuss.openedx.org/u/guangyaw)\
**Post date:** [August 29, 2019, 8:30am UTC](https://discuss.openedx.org/t/studio-logout-problem/383/1 "2019-08-29T08:30:19Z")

</div>

When I logout in cms, the system will redirect to lms. But I [type the cms url](https://photos.app.goo.gl/egixPsSBoJ2DqcnS6) in my browser, the [user doesn’t logout](https://photos.app.goo.gl/b1HsXYt3tYYXwtUv7).

---

<div class="post-metadata">

**Author:** ![guruprasad](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/guruprasad/32/303_2.png) [@guruprasad](https://discuss.openedx.org/u/guruprasad)\
**Post date:** [September 9, 2019, 6:17am UTC](https://discuss.openedx.org/t/studio-logout-problem/383/2 "2019-09-09T06:17:56Z")

</div>

@guangyaw, a change was introduced in the Ironwood release to use the LMS login authentication for Studio. However, for that to work properly, LMS and Studio have to be on cookie-compatible domains. Is that the case in your setup? If they aren’t, you can set the `DISABLE_STUDIO_SSO_OVER_LMS` feature flag to `True` to disable the LMS SSO and use the Studio login and logout pages.

---

<div class="post-metadata">

**Author:** ![guangyaw](https://avatars.discourse-cdn.com/v4/letter/g/b38774/32.png) [@guangyaw](https://discuss.openedx.org/u/guangyaw)\
**Post date:** [September 10, 2019, 3:26am UTC](https://discuss.openedx.org/t/studio-logout-problem/383/3 "2019-09-10T03:26:24Z")

</div>

If I would like to meet the request: ‘LMS and Studio have to be on cookie-compatible domains’,  
Could you please give me some advice ?  
(My lms url: [xhome.mydomain.com](http://xhome.mydomain.com) ,  
My cms url: [xstudio.mydomain.com](http://xstudio.mydomain.com) )

---

<div class="post-metadata">

**Author:** ![guruprasad](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/guruprasad/32/303_2.png) [@guruprasad](https://discuss.openedx.org/u/guruprasad)\
**Post date:** [September 11, 2019, 3:52pm UTC](https://discuss.openedx.org/t/studio-logout-problem/383/4 "2019-09-11T15:52:37Z")

</div>

> [@guangyaw](#):
>
> If I would like to meet the request: ‘LMS and Studio have to be on cookie-compatible domains’,  
> Could you please give me some advice

@guangyaw, here is an example of obviously cookie-compatible domains.

- LMS - [mydomain.com](http://mydomain.com)
- Studio - [studio.mydomain.com](http://studio.mydomain.com)

> (My lms url: [xhome.mydomain.com](http://xhome.mydomain.com) ,  
> My cms url: [xstudio.mydomain.com](http://xstudio.mydomain.com) )

Since these domains share a common sub-domain, you can make them cookie-compatible by configuring LMS (via `EDXAPP_SESSION_COOKIE_DOMAIN`) to set the cookie for the `.mydomain.com` domain.

However, if there are other sub-domains, sites using the `mydomain.com` domain in some form, this could potentially lead to issues or security issues. So you will have to be careful with doing so in this case.
