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


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: