This project is archived and is in readonly mode.
[FEATURE] More efficient session handling
-
Frederick Cheung
Sounds intriguing. Most of this isn't really relevant if you're using the cookie store, but for everyone else this could be a win.
Not loading the session until it's first touched is a no brainer. I'd be wary about not saving the session/deleting empty sessions though, as I reckon there's scope for getting your self into trouble if you're handling simultaneous requests from the same user (although to be fair the session stores that ship with rails are all vulnerable to that)/
-
Andreas
I know, there might be some problems depending on how you want the sessions to behave transaction-wise, but Rails sessions don't seem to have a defined behaviour for concurrent requests anyway.
Another problem with not saving unchanged session is that the timestamp does not get updated.
I just found this project which implements some of the changes I suggested: http://code.google.com/p/rails-f...