From a00b472ac49d0d2858c3dd8b84cb61ef5e85f42f Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 2 Jul 2010 09:58:41 +0100 Subject: [PATCH] Disable SQL sessions in database readonly mode --- config/environment.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.43.2