WordPress glossary

Cookie

A small text file that a website can store in a visitor’s browser.

A common use case for cookies is to store visitor settings in the visitor’s browser, so they remain in effect during the entire visit (and for the next visit, depending on the duration of the cookie). WordPress uses a number of different cookies to enhance the user experience. When a visitor logs in, a cookie is stored with the login details to keep the user logged in until they choose to log out.

Cookies are also stored when a non-logged-in visitor posts a comment, so that visitor won’t need to retype their information the next time they want to post a comment. As of WordPress version 4.9.6, which introduced functionality meant to make WordPress GDPR compliant, the comment form has a checkbox that the visitor can check if they want their comment details to be stored.

Published November 23, 2026