summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2009-06-25 05:56:43 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2009-06-25 05:56:43 +0000
commit8d25e8f82892347e45426b8e22f233b5696c18b9 (patch)
tree4ae4cca44abcc8733afbbe77b0b2b1a344759122 /docs
parent998a3776ed3a98af94e2424ea5fbef4db843eca4 (diff)
[1.0.X] Made some small improvements to docs/topics/http/sessions.txt
Merge of r10839 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@11107 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/http/sessions.txt14
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/topics/http/sessions.txt b/docs/topics/http/sessions.txt
index 29fea23294..1c5fc0eb25 100644
--- a/docs/topics/http/sessions.txt
+++ b/docs/topics/http/sessions.txt
@@ -121,7 +121,7 @@ It also has these methods:
.. versionadded:: 1.0
- Delete the current session data from the database and regenerate the
+ Delete the current session data from the session and regenerate the
session key value that is sent back to the user in the cookie. This is
used if you want to ensure that the previous session data can't be
accessed again from the user's browser (for example, the
@@ -363,9 +363,9 @@ by explicitly calling ``request.session.set_expiry()`` as described above in
Clearing the session table
==========================
-Note that session data can accumulate in the ``django_session`` database table
-and Django does *not* provide automatic purging. Therefore, it's your job to
-purge expired sessions on a regular basis.
+If you're using the database backend, note that session data can accumulate in
+the ``django_session`` database table and Django does *not* provide automatic
+purging. Therefore, it's your job to purge expired sessions on a regular basis.
To understand this problem, consider what happens when a user uses a session.
When a user logs in, Django adds a row to the ``django_session`` database
@@ -373,7 +373,7 @@ table. Django updates this row each time the session data changes. If the user
logs out manually, Django deletes the row. But if the user does *not* log out,
the row never gets deleted.
-Django provides a sample clean-up script in ``django-admin.py cleanup``.
+Django provides a sample clean-up script: ``django-admin.py cleanup``.
That script deletes any session in the session table whose ``expire_date`` is
in the past -- but your application may have different requirements.
@@ -420,8 +420,8 @@ SESSION_COOKIE_DOMAIN
Default: ``None``
The domain to use for session cookies. Set this to a string such as
-``".lawrence.com"`` for cross-domain cookies, or use ``None`` for a standard
-domain cookie.
+``".lawrence.com"`` (note the leading dot!) for cross-domain cookies, or use
+``None`` for a standard domain cookie.
SESSION_COOKIE_NAME
-------------------