From dbe86b4f0fba3d87b0aea2382462a0b7d57246e1 Mon Sep 17 00:00:00 2001 From: benni Date: Wed, 11 May 2011 10:11:47 +0200 Subject: [PATCH] Modified new session store initializers. --- config/initializers/secret_token.rb.SAMPLE | 7 +++++++ config/initializers/session_store.rb.SAMPLE | 15 --------------- 2 files changed, 7 insertions(+), 15 deletions(-) create mode 100644 config/initializers/secret_token.rb.SAMPLE delete mode 100644 config/initializers/session_store.rb.SAMPLE diff --git a/config/initializers/secret_token.rb.SAMPLE b/config/initializers/secret_token.rb.SAMPLE new file mode 100644 index 00000000..fcbd6c1e --- /dev/null +++ b/config/initializers/secret_token.rb.SAMPLE @@ -0,0 +1,7 @@ +# Be sure to restart your server when you modify this file. + +# Your secret key for verifying the integrity of signed cookies. +# If you change this key, all old signed cookies 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. +Foodsoft::Application.config.secret_token = '2be5574568ff4d270b108399078a8e485b363af84d441d02d2a6fd3fc51a8c015065790b7e414134e6d97ffc40da898a5a12f66f9de6b992b7ea96e7a34839b8' diff --git a/config/initializers/session_store.rb.SAMPLE b/config/initializers/session_store.rb.SAMPLE deleted file mode 100644 index 9d277335..00000000 --- a/config/initializers/session_store.rb.SAMPLE +++ /dev/null @@ -1,15 +0,0 @@ -# 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 => '_foodsoft_session', - :secret => 'as27ashi20867asdl27a9l2oa87dgh2o6a6s92l34las00121hha87072hla70072h097243hha092h4a' -} - -# 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