Cookies are mainly used for three purposes:

Session management Logins, shopping carts, game scores, or anything else the server should remember

Personalization User preferences, themes, and other settings

Tracking Recording and analyzing user behavior

Do not use cookies for: General client-side-storage Cookies are sent with every request, so they can worsen performance (especially for mobile data connections).