Because I want to use memory for my development sessions and mem_cache for my production environment, I set up config/environments/development.yml and put in:
:session_store: memory
:memory_session_ttl: 3600
and config/environments/production.yml and put in:
:session_store: mem_cache
If you're using memcached with MERB, you need to put
require 'memcache'
CACHE = MemCache.new('127.0.0.1:11211', { :namespace => 'my_app' })
in your merb_init.rb (http://merb.rubyforge.org/classes/Merb/MemCacheSession.html)