In the context of What is the difference between a Cookie and Redis Session store? , how can I share session data among Heroku apps (Sinatra frontend with Rack API backend)?
Asked
Active
Viewed 491 times
2 Answers
1
These two questions have suggestions on how to accomplish this:
-
1Hmmm, both of those answers are Rails specific (and the question is not). Anybody have solutions without a Rails dependency? – bryanbraun May 12 '14 at 16:29
1
I think what you would want to do is use an external session store (such as Redis), and simply copy the Redis environment values from the first app into the second. You should then be able to access the same session data from both Heroku apps.
EDIT 1:
It also occurs to me that as it is two seperate Heroku apps, you will (probably) have two seperate domains/subdomains. You will need to ensure that your session cookie allows access from both the domains.

Nick Mitchinson
- 5,452
- 1
- 25
- 31