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:
parent
c5a54b779c
commit
4d7c3db62c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue