python flask not creating cookie when setting expiration
You need to set the max_age=90 * 60 * 60 * 24
, or use a datetime
for your expires:
Example:
import datetimeexpire_date = datetime.datetime.now()expire_date = expire_date + datetime.timedelta(days=90)response.set_cookie(key, guid, expires=expire_date)