So, I have two heroku applications:
In production-app.com , I have several subdomains that use Heroku domain name addons with Zerigo (and not a wildcard addon):
At development-app.heroku.com I also have these custom subdomains, but since I don't have a custom domain, I just use a wildcard .
In my routes.rb , using Subdomain-Fu , I have subdomains working locally and on both Heroku applications.
The problem I am facing right now is how to maintain session synchronization between all sub-areas?
I tried adding this to production.rb :
ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS.update(:session_domain => '.production-app.com')
And even combinations of this:
begin config.action_controller.session[:domain] = '.production-app.com' config.action_controller.session[:session_domain] = '.production-app.com' rescue config.action_controller.session = {:domain => '.production-app.com', :session_domain => ".production-app.com"} end
... and for the dev site, both of them:
ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS.update(:session_domain => '.heroku.com')
None of them support a session between subdomains. How can I make this work when I have my own domain and when I just run away from the Heroku subdomain?
Thanks!
source share