When user log out in one tab then log out all tabs from the browser window.
// Copy below code all pages
1 2 3 4 5 6 7 8 9 10 11 12 |
// function storageChange(event) { if (event.key === 'logged_in') { window.location = "http://logouturl.com"; } } window.addEventListener('storage', storageChange, false); |
// When log out then add in javascript,
// If logged_in value change then event listen
1 2 3 4 5 6 |
// window.localStorage.setItem('logged_in', '1'); |
I really like what you guys are up too. Such clever
work and reporting! Keep up the excellent works guys I’ve included
you guys to our blogroll.
Hi, Neat post. There is an issue along with your site in internet explorer, would test this?
IE nonetheless is the market leader and a large part
of other people will omit your excellent writing because of this
problem.
Nope, Not tested with IE