diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-02-22 01:07:51 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-02-22 01:07:51 +0000 |
commit | 223509ba7d6eb608142c0b50325b9d01a6687e71 (patch) | |
tree | f61384324c509f2986aff8cf41c14ce548635bb8 /railties/environments | |
parent | 5a1251dc2df7a3a1e4d6fec2e9085a464543ff50 (diff) | |
download | rails-223509ba7d6eb608142c0b50325b9d01a6687e71.tar.gz rails-223509ba7d6eb608142c0b50325b9d01a6687e71.tar.bz2 rails-223509ba7d6eb608142c0b50325b9d01a6687e71.zip |
Oops, don't omit the session_key since it's used as the cookie name.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6199 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/environments')
-rw-r--r-- | railties/environments/environment.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/railties/environments/environment.rb b/railties/environments/environment.rb index e7526ab5e3..097bb803d1 100644 --- a/railties/environments/environment.rb +++ b/railties/environments/environment.rb @@ -43,7 +43,10 @@ Rails::Initializer.run do |config| # Your secret key for verifying cookie session data integrity. # If you change this key, all old sessions will become invalid! - config.action_controller.session = { :secret => '<%= CGI::Session.generate_unique_id(app_name) %>' } + config.action_controller.session = { + :session_key => '_<%= app_name %>_session', + :secret => '<%= CGI::Session.generate_unique_id(app_name) %>' + } # See Rails::Configuration for more options end |