From 5a1251dc2df7a3a1e4d6fec2e9085a464543ff50 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Thu, 22 Feb 2007 00:57:02 +0000 Subject: Session configuration in config/environment.rb instead of app/controllers/application.rb git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6198 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/environments/environment.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'railties/environments/environment.rb') diff --git a/railties/environments/environment.rb b/railties/environments/environment.rb index fe12591ded..e7526ab5e3 100644 --- a/railties/environments/environment.rb +++ b/railties/environments/environment.rb @@ -40,7 +40,11 @@ Rails::Initializer.run do |config| # Make Active Record use UTC-base instead of local time # config.active_record.default_timezone = :utc - + + # 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) %>' } + # See Rails::Configuration for more options end @@ -57,4 +61,4 @@ end # Mime::Type.register "text/richtext", :rtf # Mime::Type.register "application/x-mobile", :mobile -# Include your application configuration below \ No newline at end of file +# Include your application configuration below -- cgit v1.2.3