A simple client-side(d) single-user login & registration script that utilises localStorage
if(localStorage.getItem("logged-in") === "true") {
//do stuff
} else {
//display a message with link to login page...
}
A simple client-side(d) single-user login & registration script that utilises localStorage
JavaScriptGPL-3.0