CookieHelper Class |
Namespace: CMS.Helpers
public class CookieHelper : AbstractHelper<CookieHelper>, IDataContainer, ISimpleDataContainer
The CookieHelper type exposes the following members.
Name | Description | |
---|---|---|
CookieHelper |
Name | Description | |
---|---|---|
AllowCookies |
If true, the cookies are allowed to be used.
| |
ColumnNames |
Column names.
| |
CookieSettings |
Dictionary of the cookie levels [CookieName -> Level]
| |
CurrentCookieLevel |
Current user cookie level. All cookies with level above this
| |
DefaultCookieLevel |
Default cookie level for new users
| |
Instance |
Singleton Instance of the cookie helper.
| |
ReadOnly |
Indicates if the cookies are read-only
| |
RequestCookies |
Request cookies status [CookieName -> true/false]
| |
ResponseCookies |
Response cookies collection [CookieName -> HttpCookie]
| |
ResponseCookiesExist |
Returns true if some response cookie has been added.
|
Name | Description | |
---|---|---|
ClearResponseCookies |
Clears all cookies from cookie collection.
| |
ContainsColumn |
Returns true if the object contains specified column.
| |
EnforceSessionCookieLevel |
Removes the session cookie in case it's level is below the current cookie level and viewstate user key is disabled.
| |
EnsureResponseCookie |
Ensure response cookie.
| |
GetCookieDefaultValueInternal |
Gets the default value of a cookie
| |
GetCookieLevel |
Gets the cookie level from a string value
| |
GetCookieLevelInternal |
Gets the cookie level for the given cookie
| |
GetCookieTable |
Gets the table of cookies.
| |
GetCurrentCookieLevel |
Gets the cookie level
| |
GetDistinctCookieNames |
Gets names of both request and response cookies without duplicates.
| |
GetExistingCookie |
Returns the existing cookie.
| |
GetRequestCookieTable |
Gets the response cookies table.
| |
GetResponseCookieTable |
Gets the response cookies table.
| |
GetValue(String) |
Returns the given cookie value.
| |
GetValue(String, Boolean) |
Returns the given cookie value.
| |
GetValueInternal |
Returns the given cookie value.
| |
ChangeCookieExpiration |
Sets the specific cookie expiration time.
| |
ChangeCookieExpirationInternal |
Sets the specific cookie expiration time.
| |
ChangeCookieLevel |
Changes the cookie level to a specified level
| |
IsCookieAllowed |
Returns true if the cookie is allowed based on current cookie level
| |
IsCookieAllowedInternal |
Returns true if the cookie is allowed based on current cookie level
| |
RegisterCookie |
Registers the given cookie with the system
| |
Remove |
Removes the cookie from the client side.
| |
RemoveAllCookies |
Removes all the user cookies
| |
RemoveAllCookies(Int32) |
Removes all the user cookies above given level
| |
RemoveAllCookiesInternal |
Removes all the user cookies
| |
RemoveInternal |
Removes the cookie from the client side.
| |
RequestCookieExists |
Checks if request cookie exists.
| |
ResponseCookieExists(String) |
Checks if response cookie exists.
| |
ResponseCookieExists(String, HttpCookie) |
Checks if response cookie exists.
| |
RestoreResponseCookies |
Restores response cookies.
| |
SetAsDefaultHelper |
Sets this object as the default helper
(Inherited from AbstractHelperHelperType.) | |
SetValue(String, String, DateTime) |
Sets the cookie.
| |
SetValue(String, String, String, DateTime) |
Sets the cookie.
| |
SetValue(String, String, String, DateTime, NullableBoolean) |
Sets the cookie.
| |
SetValue(String, String, String, DateTime, NullableBoolean, String) |
Sets the cookie.
| |
SetValueInternal |
Sets the cookie.
| |
TryGetValue |
Returns value of column.
|
Name | Description | |
---|---|---|
CopyTo |
Copies the data of specified columns of the source object to the target object.
(Defined by DataExtensions.) | |
CheckRequiredColumns |
Returns true if given list of columns do not have null values in the object
(Defined by DataExtensions.) | |
ToJSON |
Returns JSON representation of current instance of IDataContainer.
(Defined by DataExtensions.) | |
ToXML |
Returns XML representation of current instance of IDataContainer.
(Defined by DataExtensions.) |