There are 2 django (same version, same sessions middleware) apps hosted on different hosts within the same domain which share a redis sessions-store.
But then when we try login on one app, the second one never gets the session data. When the 2 django apps are hosted on the same host everything works fine. We tried to set SESSION_COOKIE_DOMAIN on both apps in settings.py but without any success so far. Does anybody have a clue about what could be wrong or give me some leads about how to succesfully share sessions data beween my 2 apps ?
Below is small scheme of what we want to achieve:
|------------------------|
| site1.domain.tld
|------------------------|
|
|
|----------------------------|
| Redis session store
|----------------------------|
|
|
|------------------------|
| site2.domain.tld
|------------------------|
Note: SESSION_COOKIE_DOMAIN is set to ".domain.tld" for both apps, and SECRET_KEY is also the same.
Regards,
Clément.