cballou/MongoSession — pull request #4 by gargoyle (2012-09-21 09:29:30+00:00)
Title: Rewrite

I have been through the entire class and removed anything that is now removed in Mongo 2.2 (connect and persist options to the Mongo() class).

I have also made some options that effect performance configurable.

Finally, I have re-written _lock to only use 1 query.

So far this seems to be having a positive effect on our performance - but this is on the edge of my Mongo and PHP Session knowledge, so these changes are deffo in need of peer review / testing.

(Oh, and I have added a unit test.)