title: how to redirect to the login page when open a new tab and try to acces the system
body: <p>there is a special scenario I need to solve, that is when a user try to access the system directly using a new tab of browser while open in a another browser without go through login page or other pages, user should be redirected to the login page.</p>
  
  <p>for this issue I am expecting a solution from any of following technologies </p>
  
  <ul>
  <li><p>javascript </p></li>
  <li><p>angular</p></li>
  <li><p>jquery</p></li>
  </ul>
  
  <p>following behavior I tried, but failed that way because java script variables are reset when reload the page as well rather than open a new tab and access variable value.</p>
  
  <p><a href="https://stackoverflow.com/questions/11558025/do-browsers-propagate-javascript-variables-across-tabs">Do browsers propagate javascript variables across tabs?</a> </p>