- ⌂ Web Request
- Directives
#GETCOOKIE
Return the value of an HTTP cookie value.
This statement is only useful in a Dynamic Publication Procedure.
Prototype
#GETCOOKIE(string $key)
Parameters
- key - HTTP Cookie name.
Example
#NEW($SessionID)#GETCOOKIE('session')#ENDNEW
Session ID: $SessionID
Result
An HTTP cookie with the name "session" and value "s31k3je2k43mvn23" sent with a request to the dynamic publication procedure above would produce the following result.
Session ID: s31k3je2k43mvn23