MongoEngine/mongoengine — pull request #182 by AdrianScott (2012-11-30 02:55:46+00:00)
Title: added options for optional encoding of session data; name of sessions collection; issues #180 and #181

Hi!

These upgrades add the following 2 options for Django sessions support, per issues #180 and #181:

- Session_data may be stored in the MongoDB session document-object model unencoded, optionally. This lets applications potentially search for sessions for a particular user through a MongoDB query, something useful, for example, in expiring user sessions upon a password change.

- a new parameter for the name of the sessions collection used for storage in MongoDB, so that it is no longer hard-coded. Nice for applications which access datastore through multiple ways, not just through Django.

Enjoy -- thanks!!

-Adrian Scott

founding investor, Napster
founder, Ryze, social networking pioneer