Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit 223509ba7d6eb608142c0b50325b9d01a6687e71 1 parent 5a1251d
@jeremy jeremy authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 railties/environments/environment.rb
View
5 railties/environments/environment.rb
@@ -43,7 +43,10 @@
# 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
Please sign in to comment.
Something went wrong with that request. Please try again.