Can tornado set_secure_cookie timestamps expire?

I check the tornado function code set_secure_cookie, it can set the cookie in expires_days, but I want to know if it can be set on the timestamp form.

For example: self.set_secure_cookie ("cookie_name", "cookie_value", expires = timestamp)

timestamp is value like 1432527031.

      

Can anyone answer me?

+3


source to share


2 answers


From reading the docs and code, it doesn't look like you can set a timestamp value there.



0


source


Not documented, but the parameter expires

can be in any format accepted by tornado.httputil.format_timestamp , which includes both seconds, epoch timestamps, and datetime objects.



0


source







All Articles