# Odd behavior between different environments

**URL:** https://meta.discourse.org/t/odd-behavior-between-different-environments/63831
**Category:** Self-hosting
**Created:** [June 2, 2017, 6:45pm UTC](https://meta.discourse.org/t/odd-behavior-between-different-environments/63831 "2017-06-02T18:45:36Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Brock\_Busby](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/brock_busby/32/118746_2.png) [@Brock\_Busby](https://meta.discourse.org/u/Brock_Busby)
#### Post date: [June 2, 2017, 6:45pm UTC](https://meta.discourse.org/t/odd-behavior-between-different-environments/63831/1 "2017-06-02T18:45:36Z")

</div>

Hi all we are encountering a strange issue between our Discourse environments.

We have 3 different Discourse test environments. Let’s call them:

- [A.domain.com](http://A.domain.com)
- [B.domain.com](http://B.domain.com)
- [C.domain.com](http://C.domain.com)

Environment:

- Hosted on AWS
- All 3 share the same redis server and same RDS postgres instance with separate DBs and separate EC2 instances

Problem encountered:

- I log into [A.domain.com](http://A.domain.com) and [B.domain.com](http://B.domain.com) as “administrator” in different Chrome windows
- I log out of [A.domain.com](http://A.domain.com)
- **[B.domain.com](http://B.domain.com) immediately shows that I’ve been logged out and to refresh!**
- After refreshing I’m still logged into [B.domain.com](http://B.domain.com), and logged out of [A.domain.com](http://A.domain.com)
- I’ve also tested with A & C, or B & C with same result
- We’ve also tested this on **different** devices with same result

We are very concerned something is sharing our configs, etc and will cause issues as we migrate to our production environment, or its just a weird browser notification thing.

Any thoughts on what may be causing this? 🤔

Thanks in advance!

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [June 2, 2017, 6:47pm UTC](https://meta.discourse.org/t/odd-behavior-between-different-environments/63831/2 "2017-06-02T18:47:42Z")

</div>

Are you 100% sure that every site is connecting to a different redis instance?

---

<div class="post-metadata">

### Author: ![Brock\_Busby](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/brock_busby/32/118746_2.png) [@Brock\_Busby](https://meta.discourse.org/u/Brock_Busby)
#### Post date: [June 2, 2017, 6:50pm UTC](https://meta.discourse.org/t/odd-behavior-between-different-environments/63831/3 "2017-06-02T18:50:12Z")

</div>

> [@Falco](#):
>
> Are you 100% sure that every site is connecting to a different redis instance?

They are all sharing the same redis instance. Are we required to have separate instances/servers?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [June 2, 2017, 6:54pm UTC](https://meta.discourse.org/t/odd-behavior-between-different-environments/63831/4 "2017-06-02T18:54:04Z")

</div>

> [@Brock\_Busby](#):
>
> Are we required to have separate instances/servers?

Yes, absolutely, this is a must

---

<div class="post-metadata">

### Author: ![Brock\_Busby](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/brock_busby/32/118746_2.png) [@Brock\_Busby](https://meta.discourse.org/u/Brock_Busby)
#### Post date: [June 2, 2017, 6:55pm UTC](https://meta.discourse.org/t/odd-behavior-between-different-environments/63831/5 "2017-06-02T18:55:01Z")

</div>

> [@sam](#):
>
> Yes, absolutely, this is a must

Ok. I guess we misread on some AWS install documentation. Let us try that and we will get back to you.

---

<div class="post-metadata">

### Author: ![Brock\_Busby](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/brock_busby/32/118746_2.png) [@Brock\_Busby](https://meta.discourse.org/u/Brock_Busby)
#### Post date: [June 4, 2017, 9:46pm UTC](https://meta.discourse.org/t/odd-behavior-between-different-environments/63831/6 "2017-06-04T21:46:56Z")

</div>

That was it. Thanks guys.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 8, 2024, 12:44pm UTC](https://meta.discourse.org/t/odd-behavior-between-different-environments/63831/7 "2024-06-08T12:44:41Z")

</div>

This topic was automatically closed after 2562 days. New replies are no longer allowed.
