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.
This commit is contained in:
Tom Hughes 2012-03-06 10:42:37 +00:00
parent c5a54b779c
commit 4d7c3db62c

View 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