Click here to Skip to main content
15,891,513 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
i want an example to restrict copy and paste url from one browser to another using sessions or hidden fields or any thing.

i add this code of every page load

string strPreviousPage = "";
if (Request.UrlReferrer != null)
{
strPreviousPage = Request.UrlReferrer.Segments[Request.UrlReferrer.Segments.Length - 1];
}
if(strPreviousPage =="")
{
Response.Redirect("~/Login.aspx");
}



but this code is working only chrome but not Firefox and IE can you solve this problem please
Posted

1 solution

Hi haisanthosh,

Can you please elaborate your requirement ? Do you want some authentication mechanism for each page ?
 
Share this answer
 
Comments
haisanthosh 14-Apr-14 2:12am    
yes i want to authentication for each page and i want good example for this solution
haisanthosh 15-Apr-14 3:14am    
please resolve my issue as early possible...

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