Fortinet white logo
Fortinet white logo

Script Reference Guide

HTTP Cookie commands

HTTP Cookie commands

Part of the HTTP class, Cookie commands manipulate cookie operation:

  • HTTP:cookie_list() — Returns a list of cookies: their names and values.

  • HTTP:cookie(t) — Allows you to get/set cookie value and cookie attribute, remove a whole cookie, get the whole cookie in HTTP_RESPONSE, and insert a new cookie.

  • HTTP:cookie_crypto(t) — The provided function response_encrypt_cookie can be used to perform cookie encryption in HTTP_RESPONSE and request_decrypt_cookie can be used to perform cookie decryption in HTTP_REQUEST.

HTTP Cookie commands

HTTP Cookie commands

Part of the HTTP class, Cookie commands manipulate cookie operation:

  • HTTP:cookie_list() — Returns a list of cookies: their names and values.

  • HTTP:cookie(t) — Allows you to get/set cookie value and cookie attribute, remove a whole cookie, get the whole cookie in HTTP_RESPONSE, and insert a new cookie.

  • HTTP:cookie_crypto(t) — The provided function response_encrypt_cookie can be used to perform cookie encryption in HTTP_RESPONSE and request_decrypt_cookie can be used to perform cookie decryption in HTTP_REQUEST.