Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am developing an application that required only one page , say abc.aspx not to be opened in new tab or new window when this page is currently opened. Remaining pages are to be allowed to be opened on new tabs.. Second option is default in asp.net but first option i.e. not allowing to open particular page more than once is not that easy coding. I had done googling but was not able to get relevant answer. All answer points to using cookies to disable opening in new tab or window but not for particular page.

how can i prevent opening particular page more than once in a browser and allow rest of the pages to be opened as many times as user wants!!!
Posted
Comments
Schatak 1-Sep-15 2:24am    
But why you want so? i means is there any kind of requirement that only one user can see that page at a time ?

There is no such web concept as having a page "open" in a browser, the server has no idea what page you're looking at so it's not possible to restrict the opening of a page only once.
 
Share this answer
 
You don't have much control over the client's browser. Thus there is no way you can restrict users from accessing a webpage.
If its on the intranet, you could add this website to the firewall and block the page.
 
Share this answer
 

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