Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed formatting of comments.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3392 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 740a8d20f182bfa5d8f53fe625d7ebafc4ba4bb9 1 parent c072c8d
Russell Keith-Magee authored

Showing 1 changed file with 13 additions and 3 deletions. Show diff stats Hide diff stats

  1. 16  django/contrib/sessions/models.py
16  django/contrib/sessions/models.py
@@ -32,11 +32,21 @@ def save(self, session_key, session_dict, expire_date):
32 32
         return s
33 33
 
34 34
 class Session(models.Model):
35  
-    """Django provides full support for anonymous sessions. The session framework lets you store and retrieve arbitrary data on a per-site-visitor basis. It stores data on the server side and abstracts the sending and receiving of cookies. Cookies contain a session ID -- not the data itself.
  35
+    """
  36
+    Django provides full support for anonymous sessions. The session
  37
+    framework lets you store and retrieve arbitrary data on a
  38
+    per-site-visitor basis. It stores data on the server side and
  39
+    abstracts the sending and receiving of cookies. Cookies contain a
  40
+    session ID -- not the data itself.
36 41
 
37  
-    The Django sessions framework is entirely cookie-based. It does not fall back to putting session IDs in URLs. This is an intentional design decision. Not only does that behavior make URLs ugly, it makes your site vulnerable to session-ID theft via the "Referer" header.
  42
+    The Django sessions framework is entirely cookie-based. It does
  43
+    not fall back to putting session IDs in URLs. This is an intentional
  44
+    design decision. Not only does that behavior make URLs ugly, it makes
  45
+    your site vulnerable to session-ID theft via the "Referer" header.
38 46
 
39  
-    For complete documentation on using Sessions in your code, consult the sessions documentation that is shipped with Django (also available on the Django website).
  47
+    For complete documentation on using Sessions in your code, consult
  48
+    the sessions documentation that is shipped with Django (also available
  49
+    on the Django website).
40 50
     """
41 51
     session_key = models.CharField(_('session key'), maxlength=40, primary_key=True)
42 52
     session_data = models.TextField(_('session data'))

0 notes on commit 740a8d2

Please sign in to comment.
Something went wrong with that request. Please try again.