Jan 23, 2023
Hi Iwana,
Thanks for commenting.
It applies to both. :) Session storage and local storage are specific to the origin (i.e., domain) of the website and is only accessible by that website. The difference is that the local storage stores the data with no expiration date, while the session storage does, i.e. after the end of a session the data is not accessible anymore.
If you have more questions (about this or any other web development related question), feel free to comment or reach out to us anytime. :)