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.
for this issue I am expecting a solution from any of following technologies
javascript
angular
jquery
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.