Reputation: 96797
We have an application running on Heroku, that has multiple dynos. Let's say the application has 2 dynos, and when the user logs in, he's being served by the first dyno. If for some reason, subsequent requests are served by the second dyno, he appears as not being logged in.
The only way to fix this ( from what we tested ) seems to be setting the session store to cookie store. Has anyone else encountered this problem before?
Upvotes: 1
Views: 316
Reputation: 1455
I think you probably didn't have your other session store configured properly.
Did you have the cache service wired in like memcached or redis, so each dyno would look to a shared location for finding session info?
Upvotes: 1