title: How does Ruby on Rails access the session?
body: <p>I am using Redis 3.2.0 as sessionstore and am currently trying to fix a race condition.
  Since simply locking the session is not an option, I am trying to figure out HOW the session is loaded and saved, since modifying this might be a possible approach to solve my problem.
  Unfortunately I have not yet found anything on how this works and all I can find are resources on security topics that just assume that it simply works.</p>
  
  <p>Any help and hints would be greatly appreciated.</p>