mirror of
https://github.com/django/django.git
synced 2025-10-17 13:58:24 +00:00
Added a clear() method to sessions. Patch from mrts. Refs #7515.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8341 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
af7b6475ca
commit
31ec68c5d9
3 changed files with 16 additions and 2 deletions
|
@ -77,7 +77,7 @@ When ``SessionMiddleware`` is activated, each ``HttpRequest`` object -- the
|
|||
first argument to any Django view function -- will have a ``session``
|
||||
attribute, which is a dictionary-like object. You can read it and write to it.
|
||||
|
||||
It implements the following standard dictionary methods:
|
||||
A session object has the following standard dictionary methods:
|
||||
|
||||
* ``__getitem__(key)``
|
||||
|
||||
|
@ -106,6 +106,8 @@ It implements the following standard dictionary methods:
|
|||
|
||||
* ``setdefault()`` (**New in Django development version**)
|
||||
|
||||
* ``clear()`` (**New in Django development version**)
|
||||
|
||||
It also has these methods:
|
||||
|
||||
* ``set_test_cookie()``
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue