かなりめんどくさい。 まずは有効期限(expires)の設定 import datetime expires_date = datetime.datetime.utcnow() + datetime.timedelta(365) expires = expires_date.strftime("%d %b %Y %H:%M:%S GMT") 設定したexpiresを元にcookieを保存 self.response.headers.add_header( 'Set-Cookie', 'key=value; expires='+expires) 最後にcookieの取り出し self.request.cookies.get('key', '')