Java: ensure web application open only in one browser tab
===

What is the best approach to ensure that a specific page (assume a single-page Web application) is open only in one browser tab?

Assume the Java Web app has authentication, i.e. user has to sign in (so we can identify which page is being viewed by which user via Java Session API).

The intention is that if another tab is opened for the same URL, the user will be redirected to a static page that tells him he has the application open somewhere else (another tab).

My current approach fails to work for tabs in the same browser, since `JSESSIONID` is stored in cookies, that are available for all browser's tabs.