I am seriving my webapp via WEBrick.
I start a Firefox browser #1. Somewhere along the way it performs:
@session[:key] = 'A'
I start a second Firefox browser #2. Somewhere along the way it
@session[:key] = 'B'
What I notice: the value of key in browser #1 is now B not A. I check
RAILS_ROOT/tmp/session and find a single session file only (where RAILS
is using PStore to write the session data)
So whether the browsers are started concurrently, overlapping, or one
a time, the same underlying session is being used. Surely the web
is smart enough to generate different session numbers even if the
browser is on the same IP? Or am I being the idiot?
How in the heck can I generate multiple sessions one per client on
Will that technique work under Apache or Mongrel which I intend to
production version of the site.
I attempted to look under
but that and related documentation has been down for a while.