View Source
Class AspNetCoreCookieManager
Inheritance
System.Object
Assembly: Umbraco.Web.Common.dll
Syntax
public class AspNetCoreCookieManager : ICookieManager
Constructors
View Source
AspNetCoreCookieManager(IHttpContextAccessor)
Declaration
public AspNetCoreCookieManager(IHttpContextAccessor httpContextAccessor)
Parameters
Type |
Name |
Description |
Microsoft.AspNetCore.Http.IHttpContextAccessor |
httpContextAccessor |
|
Methods
View Source
ExpireCookie(String)
Declaration
public void ExpireCookie(string cookieName)
Parameters
Type |
Name |
Description |
System.String |
cookieName |
|
View Source
GetCookieValue(String)
Declaration
public string GetCookieValue(string cookieName)
Parameters
Type |
Name |
Description |
System.String |
cookieName |
|
Returns
Type |
Description |
System.String |
|
View Source
HasCookie(String)
Declaration
public bool HasCookie(string cookieName)
Parameters
Type |
Name |
Description |
System.String |
cookieName |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
SetCookieValue(String, String)
Declaration
public void SetCookieValue(string cookieName, string value)
Parameters
Type |
Name |
Description |
System.String |
cookieName |
|
System.String |
value |
|