Is it possible to set and delete cookies?
  • 19 Dec 2022
  • 1 Minute to read
  • Contributors
  • Dark
    Light

Is it possible to set and delete cookies?

  • Dark
    Light

Article Summary

Cookies may be used for switching display languages and A/B tests.
By using [JS Step], 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';

Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.