cookie class
Description
Represents a cookie.
Notes
It is a class that is statically included in the Cooker.
An instance returned by variable declaration has not been initialized.
fitter
Signature | Description |
cookie() | Returns a new instance of cookie class. |
cookie(string,string,string,string) | Returns a new instance of cookie class. |
getter
Signature | Description |
Domain | Returns the domain. |
Expires | Returns the expiration date. |
Fitted | Returns the value that indicates whether an instance was initialized. |
IsHttpOnly | Returns the HttpOnly attribute. |
IsSecure | Returns the Secure attribute. |
IsSession | Returns whether it is a session cookie. |
Name | Returns the cookie name. |
Path | Returns the Path attribute. |
SameSite | Returns the SameSite attribute. |
TypeName | Returns the type name. |
Value | Returns the cookie value. |
setter
Signature | Description |
Expires(string) | Set the expiration date. |
IsHttpOnly(bool) | Set the HttpOnly attribute. |
IsSecure(bool) | Set the Secure attribute. |
SameSite(string) | Set the SameSite attribute. |
Value(string) | Set the cookie value. |
method
Signature | Description |
Copy() | Copy a cookie. |
Delete() | Delete a cookie. |
Set() | Register a cookie. |
ToSession() | Make it a session cookie. |