trabajo-afectivo/config/initializers/session_store.rb

11 lines
496 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.
2012-04-10 14:06:46 +00:00
#Zammad::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")
Zammad::Application.config.session_store :active_record_store, {
key: '_zammad_session_' + Digest::MD5.hexdigest(Rails.root.to_s).to_s[5..15]
}