]> git.openstreetmap.org Git - rails.git/commitdiff
Use cache store for sessions when memcached is not available
authorTom Hughes <tom@compton.nu>
Tue, 6 Mar 2012 10:42:37 +0000 (10:42 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 6 Mar 2012 10:42:37 +0000 (10:42 +0000)
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

index 72f2da7c5ff792c3aa4b8010b3bbe49c8cda8769..02548e803a980f777fe5db1160eae22b9037dd1e 100644 (file)
@@ -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 :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
 end