Friday, December 30, 2011

What does login() and logout() actually do?

Hi, all.

In Django Document - User authentication in Django, it talks about how
to log a user in and out. But I really what to know what happens under
the hood when calling the functions login() and logout(). There is
little content concerned with this topic. I've read almost every
article or document I could find and the only thing I know is that
login() function
"
i) uses the session framework to save the cookie we've seen in the
first section of this article.
ii) login() saves the user's ID in the session
"
Does anyone know where can I find the source code of the login() and
logout() function or any articles talking about these two functions in
detail. I really need to know what happens behind the scene to better
understand Django's session framework.

Thanks.

-David.

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment