PRELIMINARY INFORMATION - SUBJECT TO CHANGE
This document is provided on an "AS IS" basis without warranties of any kind. Smartsite iXperion class libraries may change in future releases.
Checks whether a cookie can be read/write according to the visitor's cookie policy.

Namespace: Smartsite.Runtime.Modules
Assembly:  Smartsite.Runtime.Modules (in Smartsite.Runtime.Modules.dll)

Syntax

C#Copy imageCopy Code
[(Name = "{0}.Policy.IsCookieAllowed")]
public static bool IsCookieAllowed(
	 context,
	string key
)
Visual Basic (Declaration)Copy imageCopy Code
<(Name := "{0}.Policy.IsCookieAllowed")> _
Public Shared Function IsCookieAllowed ( _
	context As , _
	key As  _
) As 

Parameters

context
IRenderContext
The context.
key
String
The cookie name.

Return Value

Boolean.

See Also

Advanced