Sharing Sessions across Domains
Today's tip is a simple one: configuring rails to share session state across multiple domain and/or subdomains. Rails sessions are really just a simple cookie store. Session store configuration specifies what class to use to store the session. There are few pre-configured values provided by Rails. Custom session stores can also be specified, which is what we will need for sharing across domains.