X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/cd128966946be4690c5ec5349200721f53cab769..2c837d896dfb324346578440d9376a7ea75d4f42:/app/controllers/application_controller.rb?ds=sidebyside diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 2d137cc41..ec2f381fc 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -3,7 +3,12 @@ class ApplicationController < ActionController::Base protect_from_forgery if STATUS == :database_readonly or STATUS == :database_offline - session :off + after_filter :clear_session + wrap_parameters false + + def clear_session + session.clear + end def self.cache_sweeper(*sweepers) end