mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #17236 -- Clarified that anonymous session data are retained after login. Thanks krzysiumed for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17704 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
78638a9a51
commit
3dc946e49e
2 changed files with 5 additions and 1 deletions
|
@ -727,6 +727,9 @@ Django provides two functions in :mod:`django.contrib.auth`:
|
|||
using Django's session framework, so, as mentioned above, you'll need to
|
||||
make sure to have the session middleware installed.
|
||||
|
||||
Note that data set during the anonymous session is retained when the user
|
||||
logs in.
|
||||
|
||||
This example shows how you might use both
|
||||
:func:`~django.contrib.auth.authenticate()` and
|
||||
:func:`~django.contrib.auth.login()`::
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue