{"title":"Cookie data type","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/cookie/cookie-data-type/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/cookie/cookie-data-type, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/cookie/cookie-data-type","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Provides a data structure to work with Http cookies.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Instance methods","slug":"instance-methods","at":114,"chars":732},{"level":2,"title":"Remarks","slug":"remarks","at":846,"chars":850},{"level":2,"title":"Related information","slug":"related-information","at":1696,"chars":121}],"text":"> Version: _Available or changed with runtime version 13.0._\nProvides a data structure to work with Http cookies.\n## Instance methods\nThe following methods are available on instances of the Cookie data type.\nMethod name|Description\ncookie-domain-method|The domain of the cookie. It defines to which host the cookie can be sent to.\ncookie-expires-method|The expiration date of the cookie.\ncookie-httponly-method|True if the cookie is HttpOnly, false otherwise.\nName([Text])<cookie-name-method>|The name of the cookie.\ncookie-path-method|The path of the cookie. It indicates the path that must exist in the request URL to send the cookie.\ncookie-secure-method|True if the cookie is Secure, false otherwise. It indicates that the cookie is sent only when a request is made with the https.\nValue([Text])<cookie-value-method>|The value of the cookie.\n## Remarks\nThe 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.\nThe following data types have methods that return or use the Cookie data type:\n ../httpclient/httpclient-useresponsecookies-method\n ../httpresponsemessage/httpresponsemessage-getcookie-method\n ../httpresponsemessage/httpresponsemessage-getcookienames-method\n ../httprequestmessage/httprequestmessage-getcookie-method\n ../httprequestmessage/httprequestmessage-getcookienames-method\n## Related information\nGetting Started with AL<../../devenv-get-started>\nDeveloping Extensions<../../devenv-dev-overview>"}