journalduhacker/config/initializers/session_store.rb
2012-06-16 20:15:46 -05:00

10 lines
436 B
Ruby

# Be sure to restart your server when you modify this file.
Lobsters::Application.config.session_store :cookie_store,
key: 'lobster_trap', expire_after: 1.month
# 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")
# Lobsters::Application.config.session_store :active_record_store