I have created Login page, based on localStorage. On loading the page I have checked the value of localStorage. If I opened the web page in more than one tab and then I logo
Have a look at Page Visibility API for HTML5. This can help you out