Click here to Skip to main content
13,054,329 members (121,390 online)
Rate this:
Please Sign up or sign in to vote.
See more:

i am making a web application in which i amke seesion of id but it did not prevent to open same page using copy or paste the url in new window or tab. how it is possible plz any one tell me

thank you in advance
Posted 22-Apr-13 22:36pm
Aman.A 23-Apr-13 4:47am
Can you please improve your question a bit? if you are using session for authentication and opening the authenticated page in a different tab of the same browser, then this is the expected behavior as the session cookie still exists on the computer for that browser and is valid. Try using a different browser to open the copy and pasted url and see if that opens up.
supriya931 23-Apr-13 5:10am
no there is no authenicated page i am just using a trans id to count transaction through that page and i amke the seesion of trans id till the last page but it open when i copy the url of that page and inserted the valuein database from the copy url page
Aman.A 23-Apr-13 5:46am
can you explain what exactly you are trying to achieve (perhaps add some code to your question)? may be using session for that isn't such a good idea?

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Create a page named it "ErrorPage.aspx" and give message in page.
Now, in your current page Use below code:

protected void Page_Load(object sender, EventArgs e)
       if (!IsPostBack)
           if (Session["TransIDId"] == null)
supriya931 23-Apr-13 6:40am
i am want that no one can open a same page by copy the url of that page simple ho w it is possible
supriya931 23-Apr-13 6:42am
sorry sant osha it is not working
Sant Osha 23-Apr-13 6:43am
its not possible... because code doesn't understand in which tab or window its working

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170713.1 | Last Updated 23 Apr 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100