Friday, December 30, 2011

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

Yeah, that's what i want. Thanks.

On Fri, Dec 30, 2011 at 4:50 PM, Sebastian Goll <sebastian.goll@gmx.de> wrote:
On Fri, 30 Dec 2011 16:34:13 -0800 (PST)
David Zheng <dg83072@gmail.com> 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 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.


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