I have a white-labelled Rails app that allows me to create a variety of different new websites, each with their own TLD, but all powered by the same app. It's an ecommerce app so all orders are processed on a single, different TLD.
For example, I might have three TLDs:
domain_a.com domain_b.com domain_c.com
and orders are processed on
domain_orders.com
Domains a through c are basically marketing mini-sites where domain_orders.com takes the orders. All four domains are powered by the EXACT SAME Rails app using the host name to decide what content to present.
The problem is, if I set any sessions or cookies on domains_a, b or c that I MUST read on domain_orders.com I CANT due to cross-domain security restrictions.
Since all these domains are part of the same app on the same server, I'm wondering if there is a piece of Rack middleware or the like that I can use to store cross-domain data that all four domains can read?
Thank you for the help.