Django Book 翻译
菜单>:
TOC
返回
原文:
.. table:: Table 12-2. Settings that influence cookiebehavior +-------------------------+----------------------------------------+---------------+ |Setting |Description |Default | +=========================+========================================+===============+ |``SESSION_COOKIE_DOMAIN``|The domain to use for session cookies. |``None`` | | |Set this to a string such as | | | |``".lawrence.com"`` for cross-domain | | | |cookies, or use ``None`` for a standard | | | |cookie. | | +-------------------------+----------------------------------------+---------------+ |``SESSION_COOKIE_NAME`` |The name of the cookie to use for |``"sessionid"``| | |sessions. This can be any string. | | +-------------------------+----------------------------------------+---------------+ |``SESSION_COOKIE_SECURE``|Whether to use a secure cookie for the |``False`` | | |session cookie. If this is set to | | | |``True`` , the cookie will be marked as | | | |secure, which means that browsers will | | | |ensure that the cookie is only sent via | | | |HTTPS. | | +-------------------------+----------------------------------------+---------------+
翻译:
.. table:: 表 12-2. 影响cookie行为的设置 +-------------------------+----------------------------------------+---------------+ |设置 |描述 |缺省值 | +=========================+========================================+===============+ |``SESSION_COOKIE_DOMAIN``|session cookie生效的站点,跨站点生效的 |``None`` | | |cookie可以这样设置:``".lawrence.com"`` | | | |``None`` 为标准cookie | | +-------------------------+----------------------------------------+---------------+ |``SESSION_COOKIE_NAME`` |用于session 的cookie名称,可以是任何 |``"sessionid"``| | |字符串 | | +-------------------------+----------------------------------------+---------------+ |``SESSION_COOKIE_SECURE``|是否在session中使用安全cookie,如果设置 |``False`` | | |``True`` , cookie就会标记为安全, | | | |这意味着cookie只会通过HTTPS来传输 | | +-------------------------+----------------------------------------+---------------+
备注:
译者: