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.
| |
Instance |
Singleton Instance of the cookie helper.
| |
ReadOnly |
Indicates if the cookies are read-only
|
Name | Description | |
---|---|---|
ChangeCookieExpiration |
Sets the specific cookie expiration time.
| |
ChangeCookieExpirationInternal |
Sets the specific cookie expiration time.
| |
ClearResponseCookies |
Clears all cookies from cookie collection.
| |
ContainsColumn |
Returns true if the object contains specified column.
| |
ConvertCookieLevelToIntegerValue |
Gets the cookie level from a string value
| |
EnsureResponseCookie |
Ensure response cookie.
| |
GetCookieDefaultValueInternal |
Gets the default value of a cookie
| |
GetCookieLevelInternal |
Gets the cookie level for the given cookie
| |
GetDistinctCookieNames |
Gets names of both request and response cookies without duplicates.
| |
GetExistingCookie |
Returns the existing cookie.
| |
GetValue(String) |
Returns the given cookie value.
| |
GetValue(String, Boolean, Boolean) |
Returns the given cookie value.
| |
GetValueInternal |
Returns the given cookie value.
| |
IsCookieAllowedInternal |
Returns true if the cookie is allowed based on current cookie level
| |
RegisterCookie |
Registers the given cookie within the system.
| |
Remove |
Removes the cookie from the client side.
| |
RemoveAllCookies |
Removes all the user cookies above given level
| |
RemoveAllCookiesInternal |
Removes all the user cookies
| |
RemoveInternal |
Removes the cookie from the client side.
| |
RemoveResponseCookie |
Removes cookie from response.
| |
RequestCookieExists |
Checks if request cookie exists.
| |
ResponseCookieExists |
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 | |
---|---|---|
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(XmlWriter, Boolean) | Overloaded.
Writes XML representation of current instance of IDataContainer to provided XmlWriter.
(Defined by DataExtensions.) | |
ToXML(String, Boolean) | Overloaded.
Returns XML representation of current instance of IDataContainer.
(Defined by DataExtensions.) | |
ToXML(XmlWriter, ListString, Boolean) | Overloaded.
Writes XML representation of selected columns of current instance of IDataContainer to provided XmlWriter.
(Defined by DataExtensions.) |