3
Answers

C# How Restrict the user from opening a link in new tab

hi all,

i have an  issue related to session and a browser
for example if i login with user 1 in browser 1 then according to that user id i am storing some values in session in each page on button click but prob is occurring when i am opening two pages that is page 1 in one tab and page 2 in another, because i am using same session for more then 10 pages. 
if i go to page 2 and click on button it storing the values in session and again when i am going back to page 1 it is displaying the value of page two which is not correct so please help me how i can avoid this.

either gave some logic or tell me how i can restrict the from ctrl+N right click open in new tab or open in new window option or copy paste of url

thanks
Farhan

Answers (3)