Django Book 翻译
菜单>:
TOC
返回
原文:
This awkward split between ``set_test_cookie()`` and ``test_cookie_worked()`` is necessary due to the way cookies work. When you set a cookie, you cant actually tell whether a browser accepted it until the browsers next request.
翻译:
虽然把 ``set_test_cookie()`` 和 ``test_cookie_worked()`` 分开的做法看起来有些笨拙,但由于cookie的工作方式,这无可避免。当设置一个cookie时候,只能等浏览器下次访问的时候,你才能知道浏览器是否接受cookie。
备注:
译者: