Hi,
I am building an SaaS app (web app)
I have a slide panel on the right for the quick documentation. I want to add a specific behavior where the slide panel stay open on each pages if the user click on the icon to open it.
So I need to store the state when the page changes.
I am wondering what is the most elegant way to do that.
Should I use a cookie to store the information (so it can be created client side and at load, be used)
Or use a Laravel Session variable, and for that I need to send a JS fetch call
I don't know what should be the best solution.
Cookies are supposed to be less secure (because accessible from both sides),
but a fetch call is heavier for perf, no ?
Thank you ! 🙂