Test with cookies in Google Chrome

For a project I needed to create my own cookies to audit that I was getting the information right. Well, since we have to test for everything, through the following command in Developer Tools > Console, we can use the following command:

document.cookie="keyofcookie=valueofcookie"

Where keyofcookie, would be the key or cookie name and valueofcookie the value of the cookie.

Viewed at: StackExchange

Leave a Comment

LAtest articles

Cierre Ventana

Preview plugins in WordPress Playground directly from the Pull Request

When someone opens a PR in a WordPress plugin, the usual process for reviewing it involves downloading the…

Cierre Ventana

3 years in the WordPress.org Team Plugins

Yesterday, May 5, 2026, I celebrate 3 years as part of the WordPress.org Plugins Team. And this last…

Cierre Ventana

WordPress Day Granada: cybersecurity applied to the real world

Yesterday a conference was held in Granada focused on one of the most critical topics for any digital…