1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 17:57:35 +00:00

Browser: Process Max-Age cookie attribute

Note: the default expiry time should be the "the latest representable
date". However, DateTime::from_timestamp(NumericLimits<time_t>::max())
isn't feasible due to the for-loops in LibC's time_to_tm. So instead,
this just sets the date to the maxium year.
This commit is contained in:
Timothy Flynn 2021-04-11 23:40:49 -04:00 committed by Andreas Kling
parent d610aeb5da
commit a554676008
2 changed files with 25 additions and 1 deletions

View file

@ -30,12 +30,14 @@
#include <AK/Optional.h>
#include <AK/String.h>
#include <AK/Vector.h>
#include <LibCore/DateTime.h>
namespace Browser {
struct Cookie {
String name;
String value;
Core::DateTime expiry_time {};
};
class CookieJar {