What is a cookie?
A cookie is a small text file that a website requests to save on the visitor’s computer. Cookies are used on many websites to give a visitor access to various features.
There are two types of cookies. One type saves a file for a longer period of time on the visitor’s computer, the cookie has an expiration date. It is used, for example, in functions that tell you what is new since
the last time the user visited the website in question. Once the expiry date has passed, the cookie is deleted when the user returns to the website that created it.
The second type of cookie is called a session cookie and has no expiry date. While a user is browsing a page, this cookie is temporarily stored in the user’s computer memory, for example to keep track of the language they have chosen. Session cookies are not stored for a long time on the user’s computer and disappear when the user closes their browser.