From: Tom Hughes Date: Fri, 2 Jul 2010 08:58:41 +0000 (+0100) Subject: Disable SQL sessions in database readonly mode X-Git-Tag: live~6883^2~22 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/a00b472ac49d0d2858c3dd8b84cb61ef5e85f42f Disable SQL sessions in database readonly mode --- diff --git a/config/environment.rb b/config/environment.rb index de5852fc4..61d068ab7 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -89,7 +89,7 @@ Rails::Initializer.run do |config| # Use the database for sessions instead of the cookie-based default, # which shouldn't be used to store highly confidential information # (create the session table with 'rake db:sessions:create') - unless OSM_STATUS == :database_offline + unless OSM_STATUS == :database_offline or OSM_STATUS == :database_readonly config.action_controller.session_store = :sql_session_store end