--- title: "Setting and Deleting Cookies in Autify: Step-by-Step Guide | Autify" slug: "is-it-possible-to-set-and-delete-cookies" description: "Learn How to Set and Delete Cookies for Fine-Tuning Automation Testing in Autify. Start Your Free Trial!" updated: 2024-10-31T06:32:14Z published: 2024-10-31T06:32:14Z canonical: "help.autify.com/is-it-possible-to-set-and-delete-cookies" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.autify.com/llms.txt > Use this file to discover all available pages before exploring further. # Is it possible to set and delete cookies? Cookies may be used for switching display languages and A/B tests. By using a ***[[JS Step](/v1/docs/javascript-steps)]***, you can set the cookie value as follows: ``` document.cookie = 'cookie_name=cookie_parameter'; document.cookie = 'lang=en'; /* Common language settings */ ``` If you want to delete the cookies that have been set, it's possible with the following code: ``` document.cookie = 'cookie_name=; max-age=0'; ``` A cookie with the HttpOnly attribute A cookie with the HttpOnly attribute can't be accessed by JavaScript, so you cannot set or delete them using a JS Step.