Ticket #3304: httponly_docs.patch
File httponly_docs.patch, 2.6 KB (added by , 18 years ago) |
---|
-
request_response.txt
364 364 Returns ``True`` or ``False`` based on a case-insensitive check for a 365 365 header with the given name. 366 366 367 ``set_cookie(key, value='', max_age=None, expires=None, path='/', domain=None, secure=None )``367 ``set_cookie(key, value='', max_age=None, expires=None, path='/', domain=None, secure=None, httponly=None)`` 368 368 Sets a cookie. The parameters are the same as in the `cookie Morsel`_ 369 object in the Python standard library .369 object in the Python standard library, aside from ``httponly``. 370 370 371 371 * ``max_age`` should be a number of seconds, or ``None`` (default) if 372 372 the cookie should last only as long as the client's browser session. … … 377 377 the domains www.lawrence.com, blogs.lawrence.com and 378 378 calendars.lawrence.com. Otherwise, a cookie will only be readable by 379 379 the domain that set it. 380 * Use ``httponly`` set to ``True`` to set non-standard HttpOnly Cookie 381 flag to disallow access to this cookie via JavaScript. Not all browsers 382 honor this flag. See the `session docs`_. 380 383 384 .. _session docs: ../sessions/ 381 385 .. _`cookie Morsel`: http://www.python.org/doc/current/lib/morsel-objects.html 382 386 383 387 ``delete_cookie(key, path='/', domain=None)`` -
sessions.txt
288 288 (default), then the session data will only be saved if it has been modified -- 289 289 that is, if any of its dictionary values have been assigned or deleted. 290 290 291 SESSION_HTTP_ONLY 292 ----------------- 293 294 Default: ``False`` 295 296 Whether to use the non-standard HttpOnly Cookie flag. Some browsers, notably 297 Internet Explorer and upcoming Firefox 3, allow cookies to be sent as HTTP-only. 298 These cookies cannot be read using JavaScript, minimizing cross-site scripting 299 attacks for user agents that support it. 300 291 301 .. _Django settings: ../settings/ 292 302 293 303 Technical details -
settings.txt
736 736 737 737 Whether to save the session data on every request. See the `session docs`_. 738 738 739 SESSION_HTTP_ONLY 740 ----------------- 741 742 Default: ``False`` 743 744 Whether to use the non-standard HttOnly Cookie flag. See the `session docs`_. 745 739 746 SITE_ID 740 747 ------- 741 748