AdvantageCMS.Core.Common.BaseClasses Namespace
Advantage CSP

CookieHelper Members

The CookieHelper type exposes the following members.

Methods


  Name Description
Public method Static member CookieExist
Cookies the exist.
Public method Static member GetCookieDomain
Gets the cookie domain.
Public method Static member GetFromCookie(HttpContext, String, String)
Retrieves a single value from Request.Cookies
Public method Static member GetFromCookie(HttpContext, String)
Retrieves a single value from Request.Cookies
Public method Static member RemoveCookie(HttpContext, String, String, String)
Removes a single value from a cookie or the whole cookie (if keyName is null)
Public method Static member RemoveCookie(HttpContext, String, String)
Removes a single value from a cookie or the whole cookie (if keyName is null)
Public method Static member StoreInCookie(HttpContext, String, String, String, String, String, Nullable<(Of <<'(DateTime>)>>), Nullable<(Of <<'(Boolean>)>>), SameSiteMode, Boolean)
Stores a value in a user Cookie, creating it if it doesn't exists yet.
Public method Static member StoreInCookie(HttpContext, String, String, String, String, Nullable<(Of <<'(DateTime>)>>), Nullable<(Of <<'(Boolean>)>>), SameSiteMode, Boolean)
Stores a value in a user Cookie, creating it if it doesn't exists yet.
Public method Static member StoreInCookie(HttpContext, String, Dictionary<(Of <<'(String, String>)>>), String, String, Nullable<(Of <<'(DateTime>)>>), Nullable<(Of <<'(Boolean>)>>), SameSiteMode, Boolean)
Stores multiple values in a Cookie using a key-value dictionary, creating the cookie (and/or the key) if it doesn't exists yet.