GetCookie function

Official Content
This documentation is valid for:

Returns a string with the cookie’s value.

Syntax

GetCookie(character-expression)

Type Returned:
Character

Where:

character-expression
Is the cookie’s name.

It makes it possible to read a cookie and return a string with the value. If it doesn’t find the cookie (or can’t read it because it is disabled) it returns an empty string.

Examples

&UserIdChar = GetCookie(UserParameters.CookieName) // Or...
&UserIdChar = trim(GetCookie(UserParameters.CookieName))

Scope

Objects Procedure object, Transaction object, Web Panel object
Languages  .NET, Java, Ruby

 

See also

SetCookie function