aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/generators/rails/app/templates/config/initializers/session_store.rb.tt
blob: edd2273fb0404ce4daac4d3de04619bae415571b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
# Be sure to restart your server when you modify this file.

Rails.application.config.session_store :cookie_store, {
  :key => '_<%= app_name %>_session',
}

# Use the database for sessions instead of the cookie-based default,
# which shouldn't be used to store highly confidential information
# (create the session table with "rake db:sessions:create")
# Rails.application.config.action_dispatch.session_store = :active_record_store