com.HTTPRequest.setAutoCookies

Enables automatic cookie management for a given request.

Syntax

setAutoCookies( val INTEGER )
  1. val defines the cookie management flag.

Usage

Set to TRUE to activate automatic cookie management.

If set to TRUE, it activates the automatic cookies management for that request. For the com.HTTPRequest instance:
  • If the server returns session cookies (with no expiration date), they will be automatically sent again for a next request.
  • If the server returns persistent cookies (with an expiration date), those cookies will be registered globally for the current fglrun process, and any other HTTPRequest (including the current one) will automatically send those cookies according to the request path and domain, as long as the expiration date has not expired.

The autocookiesmanagement option of the com.WebServiceEngine.SetOption method activates the automatic cookies management for any HTTPRequest.

The maximumpersistentcookies option of the com.WebServiceEngine.SetOption method set the maximum number of cookies that can be handled by an fglrun process.

Default value is FALSE.

In case of error, the method throws an exception and sets the STATUS variable. Depending on the error, a human-readable description of the problem is available in the SQLCA.SQLERRM register. See Error handling in GWS calls (STATUS).