Created
March 23, 2016 11:29
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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