diff --git a/django/contrib/auth/__init__.py b/django/contrib/auth/__init__.py
index 141cac7..567882a 100644
a
|
b
|
def authenticate(**credentials):
|
55 | 55 | def login(request, user): |
56 | 56 | """ |
57 | 57 | Persist a user id and a backend in the request. This way a user doesn't |
58 | | have to reauthenticate on every request. |
| 58 | have to reauthenticate on every request. Note that data set during |
| 59 | the anonymous session is retained when you log in. |
59 | 60 | """ |
60 | 61 | if user is None: |
61 | 62 | user = request.user |
diff --git a/docs/topics/auth.txt b/docs/topics/auth.txt
index 63fe70f..7cb9a84 100644
a
|
b
|
Django provides two functions in :mod:`django.contrib.auth`:
|
598 | 598 | using Django's session framework, so, as mentioned above, you'll need to |
599 | 599 | make sure to have the session middleware installed. |
600 | 600 | |
| 601 | Note that data set during the anonymous session is retained when you log in. |
| 602 | |
601 | 603 | This example shows how you might use both |
602 | 604 | :func:`~django.contrib.auth.authenticate()` and |
603 | 605 | :func:`~django.contrib.auth.login()`:: |