| 1164 | |
| 1165 | == Added parameter to session backend save() method == |
| 1166 | |
| 1167 | Custom session backend writers should add a `must_create` parameter to the `save()` methods of their backends after [8340]. This parameter is `False` by default, but, when `True` indicates that the `save()` method should ensure to create a ''new'' session object with the given key or else raise a `django.contrib.session.backend.base.CreateError` exception if an object already exists with that key. |
| 1168 | |
| 1169 | == Clear session at logout == |
| 1170 | |
| 1171 | In [8343] the `django.contrib.auth.logout()` function was changed to automatically clear all the session data at logout. Thus, a session ends at logout, and subsequently it is as if the user was visting the site for the first time. |
| 1172 | |
| 1173 | If you wish to put information into the session that is available to the user after they have called your "logout" view, you should store that information in the `request.session` objects ''after'' calling `django.contrib.auth.logout()`. |