I ran two directus successfully and tried and go to admin and then login and its a success. But for some reason, when I refresh the browser on the second (not logged in) and go back to the first app and reload the page, it logs out. Have you experienced it?
Here are the basic setup I did with each docker-compose.yml
Can someone tell me what’s the problem
The App Studio uses a session cookie for authentication.
So if you’re running two instances of Directus locally, and you’re running on localhost, that’s causing issues between the two instances. Because they’re trying to use the same session cookie (which will obviously work for one and not the other).
What I usually do is:
- Open different browsers (Chrome vs Firefox)
- Use incognito/private windows
- Or just use different browser profiles
This way each instance gets its own session and they won’t interfere with each other.