How to check session expired or session logout in javascript

As explained your other topic, if you logs out in other browser, it will not affect your current status in another browser on the client side, until you refresh the page or go to another page.