{"id":3055,"date":"2021-11-09T12:33:58","date_gmt":"2021-11-09T11:33:58","guid":{"rendered":"https:\/\/davidperezgar.com\/?p=3055"},"modified":"2024-08-03T13:22:31","modified_gmt":"2024-08-03T11:22:31","slug":"do-tests-with-cookies-on-google-chrome","status":"publish","type":"post","link":"https:\/\/davidperezgar.com\/en\/blog\/web-development\/do-tests-with-cookies-on-google-chrome\/","title":{"rendered":"Test with cookies in Google Chrome"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">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 &gt; Console, we can use the following command:<\/p>\n\n\n\n<div class=\"cbc-code-wrapper\"><div class=\"cbc-code-bar\"><button class=\"cbc-copy-button\">Copy<\/button><\/div><pre class=\"wp-block-code\"><code class=\"\">document.cookie=\"keyofcookie=valueofcookie\"<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Where <em>keyofcookie<\/em>, would be the key or cookie name and <em>valueofcookie<\/em> the value of the cookie.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Viewed at: <a href=\"https:\/\/superuser.com\/questions\/244062\/how-do-i-view-add-or-edit-cookies-in-google-chrome\" target=\"_blank\" rel=\"noopener\">StackExchange<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>For a project I needed to create my own cookies to audit that I was getting the information right.<\/p>\n","protected":false},"author":1,"featured_media":4134,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","inline_featured_image":false,"_ayudawp_aiss_exclude":false,"webmentions_disabled_pings":false,"webmentions_disabled":false,"editor_notices":[],"footnotes":""},"categories":[168],"tags":[],"class_list":["post-3055","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web-development","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50"],"_links":{"self":[{"href":"https:\/\/davidperezgar.com\/en\/wp-json\/wp\/v2\/posts\/3055","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/davidperezgar.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/davidperezgar.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/davidperezgar.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/davidperezgar.com\/en\/wp-json\/wp\/v2\/comments?post=3055"}],"version-history":[{"count":0,"href":"https:\/\/davidperezgar.com\/en\/wp-json\/wp\/v2\/posts\/3055\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/davidperezgar.com\/en\/wp-json\/wp\/v2\/media\/4134"}],"wp:attachment":[{"href":"https:\/\/davidperezgar.com\/en\/wp-json\/wp\/v2\/media?parent=3055"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/davidperezgar.com\/en\/wp-json\/wp\/v2\/categories?post=3055"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/davidperezgar.com\/en\/wp-json\/wp\/v2\/tags?post=3055"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}