~/blog

/

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

David Pérez

David Pérez

Founder & CTO of CLOSE, a web development and digital marketing agency in Granada, Spain. Member of the WordPress.org Plugin Review Team, reviewing the plugins submitted to the official directory every week, sponsored by Hostinger.

sponsored by

Hostinger
‹ previous
next ›