Get Cookie

GetCookie

The GetCookie procedure retrieves a cookie from the caller's web browser session.

The GetCookie procedure can be used by a CGI program to retrieve a specific cookie from the web browser.

cookie-data  GetCookie(
  szCookieID      256A   Const Varying 
)

See also: GetEnv

Parameters

szCookieID
[input VChar(256) const]  A cookie name. Cookies are case-sensitive and assigned by the SetCookie HTML statement.

Return Value

If the function succeeds, the return value is the value (data) previously assigned to the cookie name identified on the szCookie parameter.

If the function fails, nothing is returned.

Remarks

This procedure can only be called from a CGI program. When called by a non-CGI program, it will return invalid data.