Category : session-storage

I have a php action page which sets $_SESSION["status"] = "SUCCESS" when i pass this to the following page, i have a function to test if the status was set with the following code function check_status(){ var user = sessionStorage.user; var status = sessionStorage.status; console.log(status); console.log(user); var x =status.localeCompare("SUCCESS") console.log(x) if(x === "0"){ enter code ..

Read more