Documented config/initializers/session_store.rb

This commit is contained in:
Robert Waltemath 2012-11-14 09:52:32 +01:00
parent 2bd52b9270
commit 8c0af4bd87
2 changed files with 1 additions and 2 deletions

View file

@ -40,7 +40,7 @@ Edit app_config.yml to suit your needs or just keep the defaults for now.
------------------- -------------------
The user session is stored in a cookie. To avoid misusing the cookies and its sensitive information, rails will encrypt it with a token. So copy the config file The user session is stored in a cookie. To avoid misusing the cookies and its sensitive information, rails will encrypt it with a token. So copy the config file
cp config/environment.rb.SAMPLE config/environment.rb cp config/initializers/session_store.rb.SAMPLE config/initializers/session_store.rb
and modify the token "config.action_controller.session"! and modify the token "config.action_controller.session"!

View file

@ -67,5 +67,4 @@ Rails::Initializer.run do |config|
config.i18n.default_locale = :de config.i18n.default_locale = :de
# See Rails::Configuration for more options # See Rails::Configuration for more options
config.action_controller.session = { :key => "_myapp_session", :secret => "9195616576518931793179752176417923862176431279acfaedcbeafdcbeafdcbeafcbaefdcbaedcfadcf" }
end end