webCOMAND

#GETCOOKIE

Syntax

#GETCOOKIE(Key)

Parameters

  • Key - HTTP Cookie name.

Description

Return the value of an HTTP cookie value.

This statement is only useful in a Dynamic Publication Procedure.

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