Does Javascript run after logout in WordPress

I am beginning to think that Javascript is a useless tool to control issue with browser displaying visited pages from cached data when session has been destroyed below is my latest attempt. I used localStorage.setItem() I don’t think I incorporated the code correctly. I do not know how to mesh it with WordPress “twenty sixteen” theme. Not surprisingly the code below does not work

:if (typeof(Storage) !== “undefined”) { // Store localStorage.setItem(“user_login”); // Retrieve document.getElementById(“user_pass”).innerHTML = localStorage.getItem(“user_pass”); } else { document.getElementById(“user_pass”).innerHTML = “Sorry, your browser does not support Web Storage…”; }

Read more here: Does Javascript run after logout in WordPress

Leave a Reply

Your email address will not be published. Required fields are marked *