Flask - How to get cookie expiration time?

I would like to know how you can get the expiration time of a flash file. To install it, I have the following code:

resp.set_cookie('id', my_id
            expires = current_time + current_time + datetime.timedelta(days=30))

However, I am having difficulty returning this value.

+4
source share
1 answer

I think we cannot, according to Microsoft, explain how regular browsers work.

The browser is responsible for managing cookies, and the time and expiration of the cookie helps the browser manage the storage of cookies. Therefore, although you can read the name and value of the cookie, you cannot read the date and time the cookie expired

https://msdn.microsoft.com/en-us/library/ms178194(v=vs.100).aspx

" cookie" , cookie .

0

Source: https://habr.com/ru/post/1622983/


All Articles