On Fri, 30 Dec 2011 16:34:13 -0800 (PST)
David Zheng <[email protected]> wrote:

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

The relevant source code is accessible in the django.contrib.auth package:

  
https://code.djangoproject.com/browser/django/trunk/django/contrib/auth/__init__.py

Some further details on how these functions work is given in the docs:

  https://docs.djangoproject.com/en/dev/topics/auth/#how-to-log-a-user-in
  https://docs.djangoproject.com/en/dev/topics/auth/#how-to-log-a-user-out

Regards,
Sebastian.

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

Reply via email to