I have a Rails 2.3 application with about 45,000 active users.  We currently 
store sessions in the database with active_record_store.

I recently tested switching the session store to memcache, but within a day of 
it running, we had a few users write in saying that they logged in and saw 
other users' data.  I switched back to active record, no more complaints.  That 
reminded me that when I had tried this a year or so ago, I'd seen a similar 
problem.

Does anyone have any idea why that might be happening?  Here's the section I 
was using in config/environments/production.rb

require 'memcache'
memcache_options = {
 :compression => true,
 :debug => false,
 :namespace => :myapp,
 :readonly => false,
 :urlencode => false
}

CACHE = MemCache.new memcache_options
CACHE.servers = 'localhost:11211'

ActionController::Base.session_options[:cache] = CACHE

config.action_controller.session_store = :mem_cache_store

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to