# How to keep the connexion active between 2 lms with different domain name from the same server

**URL:** <https://discuss.openedx.org/t/how-to-keep-the-connexion-active-between-2-lms-with-different-domain-name-from-the-same-server/6136>\
**Category:** Site Operators\
**Tags:** koa\
**Created:** [November 22, 2021, 1:12pm UTC](https://discuss.openedx.org/t/how-to-keep-the-connexion-active-between-2-lms-with-different-domain-name-from-the-same-server/6136 "2021-11-22T13:12:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dimitri-hoareau-WEL](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/dimitri-hoareau-wel/32/2416_2.png) [@dimitri-hoareau-WEL](https://discuss.openedx.org/u/dimitri-hoareau-WEL)\
**Post date:** [November 22, 2021, 1:12pm UTC](https://discuss.openedx.org/t/how-to-keep-the-connexion-active-between-2-lms-with-different-domain-name-from-the-same-server/6136/1 "2021-11-22T13:12:03Z")

</div>

Hello,

I am creating a new issue regarding a problem I had last week because I better identified the problem.

I am on :  
koa 3.0  
ubuntu 20.04

my home / ubuntu / config.yml config file:  
EDXAPP\_LMS\_BASE: “lms.example.in”  
EDXAPP\_CMS\_BASE: “studio.example.in”

Comprehensive theming is enabled, I have several sites with different domain names on my server, example:

site 1: [boatingformation.com](http://boatingformation.com)  
site 2: [puzzlingformation.com](http://puzzlingformation.com)

My problem is that when I am logged in to [boatingformation.com](http://boatingformation.com), I am logged out from [puzzlingformation.com](http://puzzlingformation.com). Suddenly, the problem also arises when I want to connect to studio.example.in from one of my sites, because the domain name is different. I will want to keep my connection active when I navigate from one site to another , does anyone know how can i configure this on koa?

Thank you very much for helping

---

<div class="post-metadata">

**Author:** ![Tim\_McCormack](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/tim_mccormack/32/9733_2.png) [@Tim\_McCormack](https://discuss.openedx.org/u/Tim_McCormack)\
**Post date:** [November 22, 2021, 2:29pm UTC](https://discuss.openedx.org/t/how-to-keep-the-connexion-active-between-2-lms-with-different-domain-name-from-the-same-server/6136/2 "2021-11-22T14:29:02Z")

</div>

Without knowing more about the domain structure, my advice would be to check the Set-Cookie response headers in the Network tab of your browser’s developer tools. Maybe the session cookie (or another cookie) is being set on an unexpected domain name.

---

<div class="post-metadata">

**Author:** ![braden](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/braden/32/46_2.png) [@braden](https://discuss.openedx.org/u/braden)\
**Post date:** [November 23, 2021, 1:36am UTC](https://discuss.openedx.org/t/how-to-keep-the-connexion-active-between-2-lms-with-different-domain-name-from-the-same-server/6136/3 "2021-11-23T01:36:01Z")

</div>

It could be related to the [`PREVENT_CONCURRENT_LOGINS`](https://github.com/edx/edx-platform/blob/95dbcaa32318a96390faeca113e5e91523038526/lms/envs/common.py#L466-L467) setting, which is enabled by default for increased security ([ref](https://github.com/edx/edx-platform/pull/5410)). Try turning that setting off and see if the problem persists.

---

<div class="post-metadata">

**Author:** ![dimitri-hoareau-WEL](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/dimitri-hoareau-wel/32/2416_2.png) [@dimitri-hoareau-WEL](https://discuss.openedx.org/u/dimitri-hoareau-WEL)\
**Post date:** [November 23, 2021, 9:42am UTC](https://discuss.openedx.org/t/how-to-keep-the-connexion-active-between-2-lms-with-different-domain-name-from-the-same-server/6136/4 "2021-11-23T09:42:55Z")

</div>

thanks you guys ! I set PREVENT\_CONCURRENT\_LOGINS to False and it’s working now !
