aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/code/getting_started/config/initializers/session_store.rb
blob: 1a67af58b50162c34af79fac662a917f9d9a7032 (plain) (blame)
1
2
3
4
5
6
7
8
# Be sure to restart your server when you modify this file.

Blog::Application.config.session_store :cookie_store, key: '_blog_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 "rails generate session_migration")
# Blog::Application.config.session_store :active_record_store