Skip to content

Instantly share code, notes, and snippets.

@jygeer
Created August 27, 2011 15:11
Show Gist options
  • Save jygeer/1175494 to your computer and use it in GitHub Desktop.
Save jygeer/1175494 to your computer and use it in GitHub Desktop.
# Rails 3 - support for cookie across all subdomains and top level domain
# config/initializers/session_store.rb
Rails.application.config.session_store :cookie_store, :key => '_session_cookie', :domain => :all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment