I started implementing this a few months ago.

I've factored out SessionWrapper as SessionObject, as a base class and
(re)implemented the database session store on top. I've also got a
working implementation of a FileSession class.

Summary of changes:

Added a SESSION_ENGINE to settings.py
Added the methods get_new_session_key, save and _load to SessionObject
modified middleware.py to load the session store based on
SESSION_ENGINE (if SESSION_ENGINE does not exist, defaults to
database)
added DatabaseSession into django.contrib.session.database
added FileSession into django.contrib.session.file

The code needs cleaning up and I'm yet to test it with anything other
than the development server.
I will be able to clean the code up and submit a patch next week (if
it is wanted).

Would one of the core devs comment if this on the right track?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to