Forcefully logout user from website I have a site which contains many links on the pages.
Now I want to achieve the following:-


User logs in website with credential and visit one of the page in the site.
User right click on link and open the link in new tab.Now there are
two pages of website opens in user's browser in two tabs.
Currently Log Out option is visible on every page of the website.
Authenticated user click on log out option in the page opened in one
of the tab.
Log out redirects user to login page.
So as per these scenario ,there is one more page remains open in another
tab.
Now if the same user click on any of the link in the page then it
should redirect to login page


Please provide your valuable input to achieve this functionality.
Sounds as if you need the Redirect 403 to User Login module:

Redirect the HTTP 403 error page to the Drupal /user/login page with an optional message that reads:
&quot;Access denied! You must login to view this page.&quot;
Also, the desired page is appended in the url query string so that, once login is successful, the user is taken directly where they were originally trying to go.