aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/session
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2007-11-21 15:47:50 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2007-11-21 15:47:50 +0000
commit8a086c590fbc015584437f680b20c9a0fcc47f3d (patch)
treeb53bfc857ea1dfbd1720ad6f9cc1251bea746e6d /actionpack/lib/action_controller/session
parent9b83e3396180d0dbcb23ec3d71adb198eae7629b (diff)
downloadrails-8a086c590fbc015584437f680b20c9a0fcc47f3d.tar.gz
rails-8a086c590fbc015584437f680b20c9a0fcc47f3d.tar.bz2
rails-8a086c590fbc015584437f680b20c9a0fcc47f3d.zip
Emphasize the importance of a dictionary attack-proof secret for the cookie store
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8181 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller/session')
-rw-r--r--actionpack/lib/action_controller/session/cookie_store.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/session/cookie_store.rb b/actionpack/lib/action_controller/session/cookie_store.rb
index 01f059f156..6de4d88ca0 100644
--- a/actionpack/lib/action_controller/session/cookie_store.rb
+++ b/actionpack/lib/action_controller/session/cookie_store.rb
@@ -22,7 +22,10 @@ require 'openssl' # to generate the HMAC message digest
# Session options:
# :secret An application-wide key string or block returning a string
# called per generated digest. The block is called with the
-# CGI::Session instance as an argument.
+# CGI::Session instance as an argument. It's important that the
+# secret is not vulnerable to a dictionary attack. Therefore,
+# you should choose a secret consisting of random numbers and
+# letters and preferably more than 30 characters.
#
# Example: :secret => '449fe2e7daee471bffae2fd8dc02313d'
# :secret => Proc.new { User.current_user.secret_key }