Lesson 14 of 17 · Browser and network
Browser storage (localStorage, cookies) and basic security (XSS, HTTPS)
Objective
Keep information in the visitor's browser (the cart of a craft shop, the chosen theme, the language), choosing the right tool between localStorage, sessionStorage and cookies. Then learn the essential security reflexes: preventing code injection (XSS), protecting sessions, serving everything over HTTPS.
This lesson is part of the full course
Unlock Web Development: HTML, CSS and JavaScript to read every lesson, do the exercises, access the simulations and earn your certificate.
Already enrolled? Log in.