START HERE: I wanted to use this instead of XFile, because I feel like I can modify it better and not be constrainted by Rack's protocol. However, after looking over session/abstract/id, I may be able to modify XFile to not set cookies for user-agents that look like bots and avoid sending a cookie every request using the :defer option. Could check the environment for UA and not send cookie if bot by setting defer. Or, could set defer if session file is less than 10% “expired”. This could drastically reduce the number of cookies sent. I could also add that functionality into this project too.
It would be interesting to benchmark Rack::State::Store::File (middleware) against Rack::Session::XFile (Rack integrated).