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 the 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 sets 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).