Client side script variables scope for multiple opened tabs of browser issue
问题 I have a jquery script in my shared _Layout.cshtml , which records the last click and logs out the user after a specific time interval. The problem that arises is that when more than 1 pages are opend (i.e, in multiple tabs of browser, different pages of same application are opened), if any page remains idle for specified time, it logs out the user. and the other page that the user is currently working on, when user clicks, it throws exception (which is obvious, because user has been logged