The CookieHelper type exposes the following members.
Back to Top
Back to Top
Back to Top
Back to Top
Constructors
Name | Description | |
---|---|---|
CookieHelper |
Methods
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.
| |
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
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.
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetRequestCookieTable |
Gets the response cookies table.
| |
GetResponseCookieTable |
Gets the response cookies table.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetValue |
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
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
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 AbstractHelper HelperType .) | |
SetValue(String, String, DateTime) |
Sets the cookie.
| |
SetValue(String, String, String, DateTime) |
Sets the cookie.
| |
SetValue(String, String, String, DateTime, Nullable Boolean ) |
Sets the cookie.
| |
SetValueInternal |
Sets the cookie.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TryGetValue |
Returns value of column.
|
Extension Methods
Name | Description | |
---|---|---|
AsValue |
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.) | |
CopyTo |
Copies the data of specified columns of the source object to the target object.
(Defined by DataExtensions.) | |
GetAPIString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
GetString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
CheckRequiredColumns |
Returns true if given list of columns do not have null values in the object
(Defined by DataExtensions.) | |
ToBoolean |
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDateTime |
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDouble |
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToGuid |
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToInteger |
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToJSON |
Returns JSON representation of current instance of IDataContainer.
(Defined by DataExtensions.) | |
ToString |
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToXML |
Returns XML representation of current instance of IDataContainer.
(Defined by DataExtensions.) |
Properties
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.
| |
SetCookieDomain |
If true, cookie domain is set explicitly.
|
See Also