]> git.openstreetmap.org Git - rails.git/blob - config/initializers/session_store.rb
Design adjustments to Link / HTML sharing
[rails.git] / config / initializers / session_store.rb
1 # Be sure to restart your server when you modify this file.
2
3 if defined?(MEMCACHE_SERVERS)
4   cache = MemCache.new(:namespace => "rails:session", :string_return_types => true)
5
6   OpenStreetMap::Application.config.session_store :mem_cache_store, :cache => cache, :key => "_osm_session"
7 else
8   OpenStreetMap::Application.config.session_store :cache_store, :key => '_osm_session'
9 end