From 4d7c3db62c53dab2e68f854cf3d42f2e9a92fded Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 6 Mar 2012 10:42:37 +0000 Subject: [PATCH] Use cache store for sessions when memcached is not available Using cookie store is problematic because there is a limit to the amount of session data you can store, and we sometimes overflow. --- config/initializers/session_store.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb index 72f2da7c5..02548e803 100644 --- a/config/initializers/session_store.rb +++ b/config/initializers/session_store.rb @@ -31,5 +31,5 @@ if defined?(MEMCACHE_SERVERS) OpenStreetMap::Application.config.session_store :mem_cache_store, :cache => cache, :key => "_osm_session" else - OpenStreetMap::Application.config.session_store :cookie_store, :key => '_osm_session' + OpenStreetMap::Application.config.session_store :cache_store, :key => '_osm_session' end -- 2.43.2