diff options
Diffstat (limited to 'railties/lib/generator/generators/app/templates/config/initializers/session_store.rb.tt')
-rw-r--r-- | railties/lib/generator/generators/app/templates/config/initializers/session_store.rb.tt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/railties/lib/generator/generators/app/templates/config/initializers/session_store.rb.tt b/railties/lib/generator/generators/app/templates/config/initializers/session_store.rb.tt new file mode 100644 index 0000000000..4499ab84b6 --- /dev/null +++ b/railties/lib/generator/generators/app/templates/config/initializers/session_store.rb.tt @@ -0,0 +1,15 @@ +# 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 => '_<%= 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 |