config/initializers/session_store.rb in mitamirri-0.13.8 vs config/initializers/session_store.rb in mitamirri-2.0.8
- old
+ new
@@ -1,15 +1,8 @@
# 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 => '_sample_session',
- :secret => 'e56cda156307f98e3f1e3903f92158510cbc2b55956026f2aaff5cba3604db72bad97d4002e9198f8015ed1e0ced4356857a40ef04426ba01865b424beddb921'
-}
+Rails.application.config.session_store :cookie_store, :key => '_mitamirri_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 "rake db:sessions:create")
-# ActionController::Base.session_store = :active_record_store
+# (create the session table with "rails generate session_migration")
+# Mitamirri::Application.config.session_store :active_record_store