diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2008-11-30 15:53:21 -0600 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2008-11-30 15:53:21 -0600 |
commit | 6e66e7d6460b99bb0877a891aa3fbb789b563123 (patch) | |
tree | 7a847f0a1f9831bf7cc1e8cbafb0af221b4b363e /railties/configs/initializers | |
parent | c5f461d7b0b8f5ee0021c78a80525c0594864c68 (diff) | |
download | rails-6e66e7d6460b99bb0877a891aa3fbb789b563123.tar.gz rails-6e66e7d6460b99bb0877a891aa3fbb789b563123.tar.bz2 rails-6e66e7d6460b99bb0877a891aa3fbb789b563123.zip |
Even more polish of the default configration files and split off the session store configuration into its own file
Diffstat (limited to 'railties/configs/initializers')
-rw-r--r-- | railties/configs/initializers/session_store.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/railties/configs/initializers/session_store.rb b/railties/configs/initializers/session_store.rb new file mode 100644 index 0000000000..29bfbe68a8 --- /dev/null +++ b/railties/configs/initializers/session_store.rb @@ -0,0 +1,13 @@ +# 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 = { + :session_key => '_<%= app_name %>_session', + :secret => '<%= app_secret %>' +} + +# 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 |