Apart from keeping you logged in, like the other commenter mentioned, cookies can for example be used to save the theme you are using (light/dark) or the language you picked. It would be annoying to have to reselect that every time you move to a different subpage.
Your browser passes theme and language recommendations to every site you visit. So outside of passwords, there are fewer reasons for cookies than you may presume.
Apart from keeping you logged in, like the other commenter mentioned, cookies can for example be used to save the theme you are using (light/dark) or the language you picked. It would be annoying to have to reselect that every time you move to a different subpage.
Your browser passes theme and language recommendations to every site you visit. So outside of passwords, there are fewer reasons for cookies than you may presume.
They’re only recommendations. You should still respect the user’s choice if they choose something else, which is usually done via cookies.
Theme can use local storage, instead of cookies.
This breaks once you’ve got server-sided rendering.