Cookies are small text files that sites visited by the user send and record on his computer or mobile device, to be then transmitted to the same sites the next time he visits. Thanks to cookies, a site remembers the user's actions and preferences (such as, for example, login data, the language chosen, font size, other display settings, etc.) so that they do not have to be indicated again when the user returns to that site or navigates from one page to another of it. Cookies, therefore, are used to perform computer authentication, session monitoring and storage of information regarding the activities of users who access a site and may also contain a unique identification code that allows you to keep track of user navigation within the site for statistical or advertising purposes.
There are various types of cookies, depending on their characteristics and functions, and these can remain on the user's computer for different periods of time: so-called session cookies, which are automatically deleted when the browser is closed; so-called persistent cookies, which remain on the user's equipment until a preestablished expiry date.