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

Is it possible to set and delete cookies?

  • Dark
    Light

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';

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.