CookieOptions Class
Options used to create a new cookie.
Namespace: Microsoft.Owin
Assembly: Microsoft.Owin (in Microsoft.Owin.dll)
Inheritance Hierarchy
System.Object
Microsoft.Owin.CookieOptions
Syntax
public class CookieOptions
public ref class CookieOptions
type CookieOptions = class end
Public Class CookieOptions
Constructors
Name | Description | |
---|---|---|
CookieOptions() | Creates a default cookie with a path of '/'. |
Properties
Name | Description | |
---|---|---|
Domain | Gets or sets the domain to associate the cookie with. |
|
Expires | Gets or sets the expiration date and time for the cookie. |
|
HttpOnly | Gets or sets a value that indicates whether a cookie is accessible by client-side script. |
|
Path | Gets or sets the cookie path. |
|
Secure | Gets or sets a value that indicates whether to transmit the cookie using Secure Sockets Layer (SSL)—that is, over HTTPS only. |
Methods
Name | Description | |
---|---|---|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
ToString() | (Inherited from Object.) |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Return to top