Set expirationDate for persistent cookie
This commit is contained in:
parent
b05fa2ed5b
commit
e24ce97731
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ struct Converter<net::CanonicalCookie> {
|
|||
dict.Set("secure", val.IsSecure());
|
||||
dict.Set("httpOnly", val.IsHttpOnly());
|
||||
dict.Set("session", !val.IsPersistent());
|
||||
if (!val.IsPersistent())
|
||||
if (val.IsPersistent())
|
||||
dict.Set("expirationDate", val.ExpiryDate().ToDoubleT());
|
||||
return dict.GetHandle();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue