X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=config%2Finitializers%2Fsession_store.rb;fp=config%2Finitializers%2Fsession_store.rb;h=ce7cf52a634df90085071a7758456758a0a9666e;hb=36d9f3351a3b4e8159279445190e2287ffdea86c;hp=5078d7a6de7a0c25f9fe07b9e4ac72d13773a945;hpb=913cf6054b1d29b5d2f5e620304af7ee77cc1f1f;p=feedcatcher.git diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb index 5078d7a..ce7cf52 100644 --- a/config/initializers/session_store.rb +++ b/config/initializers/session_store.rb @@ -1,15 +1,3 @@ # Be sure to restart your server when you modify this file. -# Your secret key for verifying cookie session data integrity. -# If you change this key, all old sessions will become invalid! -# Make sure the secret is at least 30 characters and all random, -# no regular words or you'll be exposed to dictionary attacks. -ActionController::Base.session = { - :key => '_feedcatcher_session', - :secret => 'e2dacfa1d2730be2dcd393fa4f91418f345cfe7285aeff9c447e6f263373474885ad6d5248d2dfbea6d141cddda30c9350d01058a89e135610e8f8481bb2097c' -} - -# 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") -# ActionController::Base.session_store = :active_record_store +Feedcatcher::Application.config.session_store :cookie_store, key: '_feedcatcher_session'