Hi,

In the session module in backends/base.py _get_new_session_key
creates a random string - the session_key which is sent to the user as
a session_cookie.

The encode function takes the session_dict pickle it and hash it with
md5(pickle + secretKey)
The encoded result is saved to the database.

What is the purpose of the encode function?
The user only gets the session_key which is unrelated to the
session_dict.

Thanks

--~--~---------~--~----~------------~-------~--~----~
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