Szerkesztés

Megosztás a következőn keresztül:


Cookie Data type

Version: Available or changed with runtime version 13.0.

Provides a data structure to work with Http cookies.

Instance methods

The following methods are available on instances of the Cookie data type.

Method name Description
Domain() The domain of the cookie. It defines to which host the cookie can be sent to.
Expires() The expiration date of the cookie.
HttpOnly() True if the cookie is HttpOnly, false otherwise.
Name([Text]) The name of the cookie.
Path() The path of the cookie. It indicates the path that must exist in the request URL to send the cookie.
Secure() True if the cookie is Secure, false otherwise. It indicates that the cookie is sent only when a request is made with the https.
Value([Text]) The value of the cookie.

Remarks

The Cookie data type allows you to efficiently work with HTTP cookies. You can use the Cookie data type to send and receive cookies while sending HTTP requests. The Cookie data type provides methods to get and set the domain, expiration date, name, path, and value of a cookie. It also provides a method to check if a cookie is Secure. You can choose to automatically reuse response cookies in subsequent requests, handle cookies manually, or a mix of both.

The following data types have methods that return or use the Cookie data type:

Getting Started with AL
Developing Extensions