In my project, I want to invalidate the user session and redirect the user to logout page if the user is trying to open a window's url on another tab in the same browser. How can i achieve this?
Asked
Active
Viewed 1,097 times
0
-
Check this answer : http://stackoverflow.com/questions/30662431/how-to-stop-browsers-from-sharing-session-amongst-tabs – indranil32 Jan 04 '16 at 07:48
-
Use `window.name` to detect new tab in javascript – Jan 04 '16 at 07:58
-
This will only lead to a bad user experience. – Tiny Jan 04 '16 at 08:06
-
is there any tags that can be added to configuration file to disable session persistence in multiple tabs? – aruna a Jan 04 '16 at 08:53
1 Answers
0
Try using HTML 5 local storage to count the number of open instances. Or simply use cookies to keep track of open instances.

Jamshed Katta
- 119
- 3