Top
NetCOBOL V11.0 CGI Subroutines User's Guide
FUJITSU Software

3.9.2 COBW3_DEL_COOKIE, COBW3_DEL_COOKIE_X and COBW3_DEL_COOKIE_N

These subroutines delete the cookie data that was registered by COBW3_SET_COOKIE, etc.

These subroutines have the following functions:

ASCII environment

COBW3_DEL_COOKIE

Deletes the cookie data that corresponds to the cookie name, which is an alphanumeric character string.

Unicode environment

COBW3_DEL_COOKIE_X

Deletes the cookie data that corresponds to the cookie name, which is an alphanumeric character string.

COBW3_DEL_COOKIE_N

Deletes the cookie data that corresponds to the cookie name, which is a national character string.

Note

These subroutines must be used before COBW3_PUT_HTML or COBW3_PUT_TEXT is used. If these subroutines are executed after COBW3_PUT_HTML or COBW3_PUT_TEXT are used, the specified information is invalidated.

Format

CALL "COBW3_DEL_COOKIE" USING COBW3.
CALL "COBW3_DEL_COOKIE_X" USING COBW3.
CALL "COBW3_DEL_COOKIE_N" USING COBW3.

Data setting at calling

COBW3-COOKIE-NAME and COBW3-COOKIE-NAME-N

Specify a cookie name that is to be deleted.

When COBW3_DEL_COOKIE or COBW3_DEL_COOKIE_X are used, specify the cookie name in COBW3-COOKIE-NAME.

When COBW3_DEL_COOKIE_N is used, specify the cookie name in COBW3-COOKIE-NAME-N.

COBW3-COOKIE-NAME-LENGTH [Optional]

When the cookie name has a valid blank at the end, specify the byte length of the blank-containing cookie name (character string).

Value

Explanation

0

Deletes a cookie name up to the last character other than the blank. However, if the COBW3-COOKIE-NAME or COBW3-COOKIE-NAME-N character string consists of only blank characters, the character string length is assumed to be 0.

1 to 64

Deletes a cookie name of the specified character string length.

Processing result data

None