Cookies in WordPress? Bet if you’re new to WordPress, you didn’t think it had cookies. These aren’t the type you eat, but the type that stores information. In this article, you’ll learn a bit about cookies in WordPress, and even a little on data privacy.
What are cookies, in WordPress terms?
Cookie, short for HTTP cookie, is a small packet of information that an online server issues, when a user is visiting a website. This small packet of information is stored by the web browser in the user’s computer or other devices.
So, as a user surfing a WordPress site, you can see this when you fill out the blog comment form, and it suggests your name, email address, and website URL. You can also experience how cookies work, when your browser remembers to keep you logged into the WordPress admin area, rather than logging you out each and every time you leave.
How to know what cookies your WordPress website uses?
If you’re a WordPress power-user that can live a bit dangerously, or a developer, and likes handling code, you can find out what cookies your website uses through the developer tools in your browser. There should be a setting that will list all the types of cookies your site uses. For example, you can find this out in your Chrome browser by:
Right-click on your page (the front end of the website) and within the drop-down, select “Inspect”. This will open up the Developer console.
Navigate to the Applications tab.
Scroll to the Storage section, and find Cookies.
Expand the Cookies listing
Select the domain that you want to see what cookies are being used.
Does WordPress use cookies by default?
If you didn’t think WordPress used cookies, then you’re wrong. Out-of-the-box, by default, WordPress uses cookies for authentication. Most content management systems, whether hosted by a third party, or self-hosted, use some type of cookie. Unless you’re using a static website that has no login that collects no user information, no forms to collect leads, and no 3rd party analytics tracking, you will more than likely end up on a site that has cookies.
What cookies does WordPress use?
At the very least, without added plugins or 3rd party services involved, the cookies that WordPress uses are:
User Cookies
Tracks user sessions
Comment Cookies
Remembers any commenter details like name, email, and website URL.
User Cookies
User cookies are present when the user is logged in. If you’re not logged in, then this cookie is not in use. The cookie looks somewhat like: wordpress_logged_in[hash], if you’re using the browser developer inspect tool. The data is encrypted and stored for about 15 days.
Comment Cookies
Comment cookies are present when your visitors leave comments.
Comment author [hash] - Name of the commentator
Commen t_authoremail [hash] - Email address
Comment _authorurl [hash] - Commentator’s website URL
In a way, these types of cookies are good for remembering when your visitor returns, and take a year to expire. They won’t have to re-type all three of those fields, and can focus more on leaving their feedback.







