Click here to Skip to main content
14,775,288 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
An user is logged in and acessing Home page (say). My question is how to prevent the same user when open the same Home Page in a new tab , it will show 404 Error - File not found .
Please help me.
Kornfeld Eliyahu Peter 16-Jun-15 7:21am
How do you know it is the same user?
Philippe Mori 16-Jun-15 19:54pm
This does not make any sense because this is not how browser works.

1 solution

Your server code knows nothing about tabs, or if the client is even using a browser at all, so there is nothing you can do to stop this. You should write your site such that it works regardless of how the user chooses to use it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900