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 72f2da7..02548e8 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 :cookie_store, :key => '_osm_session'
+  OpenStreetMap::Application.config.session_store :cache_store, :key => '_osm_session'
 end