Hey there! I'm exploring daisyUI, and I've found something interesting with their theme generator. It seems to remember custom themes without using cookies at all. If you check out their theme generator [here](https://daisyui.com/theme-generator/), you can play around with themes, and they get restored even after closing the page, which is odd since there are no cookies saved. However, if I open the site in incognito mode, it starts fresh again. How do you think they're achieving this? Also, if I want to reset any tracking data related to my user session, what's the process?
2 Answers
There are various ways to store data without cookies! You've already nailed it with local storage. Another method could be server-side storage linked to a user's account — great for syncing preferences across devices. However, it needs the user to log in, which isn't always the case with anonymous visitors. Plus, local storage is more user-friendly in that regard.
Looks like they're using local storage! It's a handy feature that allows websites to save data in the user's browser. You can confirm this in developer tools. Unlike cookies, local storage doesn't automatically send data back to the server, so it's pretty straightforward for maintaining state without dealing with cookies.
Related Questions
Cloudflare Origin SSL Certificate Setup Guide
How To Effectively Monetize A Site With Ads