Skip to content

Instantly share code, notes, and snippets.

@amitpatelx
Created March 23, 2016 11:29
Show Gist options
  • Save amitpatelx/a3d64c28032df6d67eb9 to your computer and use it in GitHub Desktop.
Save amitpatelx/a3d64c28032df6d67eb9 to your computer and use it in GitHub Desktop.
Set the same session cookie name and domain scope in session_store.rb
# key and domain config must be same for both applications
Rails.application.config.session_store ActionDispatch::Session::CacheStore, :expire_after => 30.minutes, key: '_shared_session_key', domain: ".example.com"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment