I am trying to simulate multiple users accessing my app from the same
To do so, I am trying to understand when Rails creates a session
object and what triggers this.
My tests indicate that an empty session object is created as soon as
the server receives a HTTP request from a browser.
If I open up another browser session on my development machine and
issue another HTTP request, no new session object is created - Rails
reuses the existing one.
Why is this? Does Rails look at some specific information in the HTTP
request headers when determining whether or not to create a new
I hope this makes sense.