Friday, December 30, 2011

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

Thanks.

On Fri, Dec 30, 2011 at 4:55 PM, Mario Gudelj <mario.gudelj@gmail.com> wrote:
Hey,

All that code is in django.contrib.auth. The login() function is is in views.py in that directory.

Cheers,



On 31 December 2011 11:34, David Zheng <dg83072@gmail.com> wrote:
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.


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