trabajo-afectivo/config/initializers/session_store.rb

11 lines
489 B
Ruby
Raw Normal View History

2012-04-10 13:31:21 +00:00
# Be sure to restart your server when you modify this file.
2015-09-25 14:37:55 +00:00
#Rails.application.config.session_store :cookie_store, key: '_zammad_session'
2012-04-10 13:31:21 +00:00
# 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")
2015-09-25 14:37:55 +00:00
Rails.application.config.session_store :active_record_store, {
key: '_zammad_session_' + Digest::MD5.hexdigest(Rails.root.to_s).to_s[5..15]
}