Besides being a delicious treat, cookies are a special kind of small computer file that helps a website recognize repeat visitors.
Originally, when the internet was first invented, a website had no way of distinguishing regular users versus first-time visitors. Instead, everyone was treated as though it was their first time visiting the website. The solution to this problem was the invention of cookies.
For WordPress, however, there are only two kinds of cookies, known as session cookies and comments cookies.
Session cookies are the simplest kind and work to recognize a registered WordPress user and make sure they remain logged in. WordPress session cookies expire every 15 days, but will be automatically renewed every time you visit a WordPress site (unless cookies are disabled).
Comments cookies are a little more sophisticated. Every time a user leaves a comment on a WordPress website, a cookie is generated with the user’s name, email address, and other information. Since spam is a big problem with comments on WordPress, the comments cookies help a WordPress site recognize an authentic user who has written a comment. Comments cookies expire in around 347 days.
There are also WordPress plugins that generate cookies.
Latest posts by Jamie Spencer (see all)
- A Guide On How to Create A Professional Custom Email Domain Address - September 21, 2021
- Best Free Image Hosting Sites Guide For 2021 - September 19, 2021
- How To Find The Best Cheap Web Hosting In 2021 – Low Cost Hosting For Bloggers & Businesses On A Budget - September 19, 2021