Retreiving names of received cookies

get_cookie_names()

Retreiving names of received cookies


SYNTAX

get_cookie_names(array_field)

Store the names of all cookies placed on the user’s machine by this web server. The cookie names are stored into successive elements of the specified array_field. It is the programmer’s responsibility to ensure that the size and dimension of array_field are adequate.

Note

New in version 6.2.5: See the new features.

If the field array contains the “a” flag the dimension of the array will be automatically increased if necessary to the number of assigned cookie names.


New in version 6.3.0: See the new features.

The character conversion honors the value set in sys.CharSetEncodeFrom and sys.CharSetEncodeTo, so that the string received is supposed to be sys.CharSetEncodeTo encoded while the result is converted into the sys.CharSetEncodeFrom encoding.

The function returns the number of names stored.


EXAMPLE

!temp CookieNames,,a30[50]
!temp NumCookies,,u1

tmp.NumCookies = get_cookie_names(CookieNames)

RELATED TOPICS

Creating web pages with Sculptor

Internet functions

sys.CharSetEncodeFrom and sys.CharSetEncodeTo