Cookie Constructors
The following are constructors for
Cookie
.
Cookie(name, value, path, maxAge, isSecure)
Creates a new instance of the
Cookie
class using the specified name, value, path, age, and the secure setting.
Cookie(name, value, path, maxAge, isSecure, SameSite)
Creates a new instance of the
Cookie
class using the specified name, value, path, and age, and settings for security and cross-domain behavior.