On Thu, 2009-04-30 at 09:47 -0700, Brian Morton wrote:
> Thanks.  That makes perfect sense.  Since my session data is persisted
> in the db (and I don't have a cleanup script active at the moment), I
> can retrieve the pickled session data based on the session id in the
> cookie (that is in the traceback).  The problem is decoding that
> session data.  Can the pickle module accept a string as input and
> output the unpickled data?  I know it does it with file objects via
> load, but I can't find any reference on how to do this with a string.

The documentation for the pickle module tells all. :-)

http://docs.python.org/library/pickle.html#pickle.loads

Regards,
Malcolm



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

Reply via email to