Class Browser.Types.Cookie
Browser cookie.
Implements
Namespace: Google.Backstory
Assembly: Google.Backstory.dll
Syntax
public sealed class Browser.Types.Cookie : IMessage<Browser.Types.Cookie>, IEquatable<Browser.Types.Cookie>, IDeepCloneable<Browser.Types.Cookie>, IBufferMessage, IMessage
Constructors
Cookie()
Declaration
public Cookie()
Cookie(Cookie)
Declaration
public Cookie(Browser.Types.Cookie other)
Parameters
| Type | Name | Description |
|---|---|---|
| Browser.Types.Cookie | other |
Properties
Domain
The domain for which the cookie is valid.
Declaration
public string Domain { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ExpirationTime
The date and time when the cookie will expire.
Declaration
public Timestamp ExpirationTime { get; set; }
Property Value
| Type | Description |
|---|---|
| Timestamp |
HttpOnly
Indicates if the cookie is inaccessible via client-side scripts (e.g., JavaScript).
Declaration
public bool HttpOnly { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
MaxAge
The maximum age of the cookie in seconds.
Declaration
public long MaxAge { get; set; }
Property Value
| Type | Description |
|---|---|
| long |
Name
The unique name identifying the cookie.
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Partitioned
Shows if the cookies is stored using partitioned storage.
Declaration
public bool Partitioned { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Path
The URL path for which the cookie is valid.
Declaration
public string Path { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
SameSite
Affects cross-site request behavior.
Declaration
public Browser.Types.Cookie.Types.CookieSameSite SameSite { get; set; }
Property Value
| Type | Description |
|---|---|
| Browser.Types.Cookie.Types.CookieSameSite |
Secure
Indicates if the cookie should only be sent over secure HTTPS connections.
Declaration
public bool Secure { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Session
Indicates if the cookie is persistent.
Declaration
public bool Session { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Value
The data stored within the cookie.
Declaration
public string Value { get; set; }
Property Value
| Type | Description |
|---|---|
| string |