From a9da1921a7f6cf249d77007a4045fc3285e925f1 Mon Sep 17 00:00:00 2001 From: FreeAquar Date: Sun, 25 Jan 2015 17:01:47 +0800 Subject: [PATCH] a wrong describle --- docs/guide/security.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/security.rst b/docs/guide/security.rst index d24a23db..57a1cba7 100644 --- a/docs/guide/security.rst +++ b/docs/guide/security.rst @@ -50,7 +50,7 @@ cookies. By default, Tornado's secure cookies expire after 30 days. To change this, use the ``expires_days`` keyword argument to ``set_secure_cookie`` *and* the -``max_age_days`` argument to ``set_secure_cookie``. These two values are +``max_age_days`` argument to ``get_secure_cookie``. These two values are passed separately so that you may e.g. have a cookie that is valid for 30 days for most purposes, but for certain sensitive actions (such as changing billing information) you use a smaller ``max_age_days`` when reading the cookie.