mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:17:35 +00:00
Browser+LibWeb: Move the cookie structure into LibWeb
This commit is contained in:
parent
c2d38abe6f
commit
7193e518d1
4 changed files with 52 additions and 16 deletions
|
@ -157,7 +157,7 @@ void CookieJar::store_cookie(Web::Cookie::ParsedCookie& parsed_cookie, const URL
|
|||
// https://tools.ietf.org/html/rfc6265#section-5.3
|
||||
|
||||
// 2. Create a new cookie with name cookie-name, value cookie-value. Set the creation-time and the last-access-time to the current date and time.
|
||||
Cookie cookie { move(parsed_cookie.name), move(parsed_cookie.value) };
|
||||
Web::Cookie::Cookie cookie { move(parsed_cookie.name), move(parsed_cookie.value) };
|
||||
cookie.creation_time = Core::DateTime::now();
|
||||
cookie.last_access_time = cookie.creation_time;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue