Click or drag to resize
CookieHelper Class
Provides the cookie management methods.
Inheritance Hierarchy
SystemObject
  CMS.BaseCoreMethods
    CMS.BaseAbstractHelper
      CMS.BaseAbstractHelperCookieHelper
        CMS.HelpersCookieHelper

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 12.0.0
Syntax
C#
public class CookieHelper : AbstractHelper<CookieHelper>, 
	IDataContainer, ISimpleDataContainer

The CookieHelper type exposes the following members.

Constructors
  NameDescription
Public methodCookieHelper
Top
Properties
  NameDescription
Public propertyStatic memberAllowCookies
If true, the cookies are allowed to be used.
Public propertyColumnNames
Column names.
Public propertyStatic memberInstance
Singleton Instance of the cookie helper.
Public propertyStatic memberReadOnly
Indicates if the cookies are read-only
Top
Methods
  NameDescription
Public methodStatic memberChangeCookieExpiration
Sets the specific cookie expiration time.
Protected methodChangeCookieExpirationInternal
Sets the specific cookie expiration time.
Public methodStatic memberClearResponseCookies
Clears all cookies from cookie collection.
Public methodContainsColumn
Returns true if the object contains specified column.
Public methodStatic memberConvertCookieLevelToIntegerValue
Gets the cookie level from a string value
Public methodStatic memberEnsureResponseCookie
Ensure response cookie.
Protected methodGetCookieDefaultValueInternal
Gets the default value of a cookie
Protected methodGetCookieLevelInternal
Gets the cookie level for the given cookie
Public methodStatic memberGetDistinctCookieNames
Gets names of both request and response cookies without duplicates.
Public methodStatic memberGetExistingCookie
Returns the existing cookie.
Public methodStatic memberGetValue(String)
Returns the given cookie value.
Public methodStatic memberGetValue(String, Boolean, Boolean)
Returns the given cookie value.
Protected methodGetValueInternal
Returns the given cookie value.
Protected methodIsCookieAllowedInternal
Returns true if the cookie is allowed based on current cookie level
Public methodStatic memberRegisterCookie
Registers the given cookie within the system.
Public methodStatic memberRemove
Removes the cookie from the client side.
Public methodStatic memberRemoveAllCookies
Removes all the user cookies above given level
Protected methodRemoveAllCookiesInternal
Removes all the user cookies
Protected methodRemoveInternal
Removes the cookie from the client side.
Public methodStatic memberRemoveResponseCookie
Removes cookie from response.
Public methodStatic memberRequestCookieExists
Checks if request cookie exists.
Public methodStatic memberResponseCookieExists
Checks if response cookie exists.
Public methodStatic memberRestoreResponseCookies
Restores response cookies.
Public methodSetAsDefaultHelper
Sets this object as the default helper
(Inherited from AbstractHelperHelperType.)
Public methodStatic memberSetValue(String, String, DateTime)
Sets the cookie.
Public methodStatic memberSetValue(String, String, String, DateTime)
Sets the cookie.
Public methodStatic memberSetValue(String, String, String, DateTime, NullableBoolean)
Sets the cookie.
Public methodStatic memberSetValue(String, String, String, DateTime, NullableBoolean, String)
Sets the cookie.
Protected methodSetValueInternal
Sets the cookie.
Public methodTryGetValue
Returns value of column.
Top
Extension Methods
  NameDescription
Public Extension MethodCheckRequiredColumns
Returns true if given list of columns do not have null values in the object
(Defined by DataExtensions.)
Public Extension MethodToJSON
Returns JSON representation of current instance of IDataContainer.
(Defined by DataExtensions.)
Public Extension MethodToXML(XmlWriter, Boolean)Overloaded.
Writes XML representation of current instance of IDataContainer to provided XmlWriter.
(Defined by DataExtensions.)
Public Extension MethodToXML(String, Boolean)Overloaded.
Returns XML representation of current instance of IDataContainer.
(Defined by DataExtensions.)
Public Extension MethodToXML(XmlWriter, ListString, Boolean)Overloaded.
Writes XML representation of selected columns of current instance of IDataContainer to provided XmlWriter.
(Defined by DataExtensions.)
Top
See Also