Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a website in which user can login using valid credentials.
After login if user copy url of one of the page and paste in same browser or different browser he can access the page. Any solution to prevent this.
Thanks in advance.. I need session out when doing the same.
Posted
Comments
Philippe Mori 19-Jul-12 12:18pm    
If the user log out from a browser and try the address does it still have access and does he is properly logged out?
Anish K S 19-Jul-12 12:21pm    
Yes if He Logout also he can access the page using url
Philippe Mori 19-Jul-12 12:58pm    
Well, if you use a computer onto which the user has never logged in, does he have access to those pages?

Either you don't properly clear information when a user log out or you don't properly control access to pages that should be protected.
StianSandberg 19-Jul-12 12:19pm    
sounds like a serious security hole..
ZurdoDev 19-Jul-12 14:28pm    
Without seeing anything you have done, who knows what is going on. Now, in the same browser, IE for example, some of the same tabs use the same process so it is perfectly normal to still be authenticated because the session is still the same. But if they are opening a different browser, such as then firefox, and can get to it you are not implementing authentication properly.

No, we can't change how the internet works, or how your browser works. If what you wanted were to work, then all popups would not work, as a result.
 
Share this answer
 
My understanding is that you need the user to access the page only when he is logged in. IF he is not logged in but only has the URL to the page(which he might have copied earlier then he should not be able to see this page)

If my understanding is correct then what you need is either the asp.net membership and roles functionality or custom forms authentication.

following links will help:
Understanding ASP.NET Roles and Membership - A Beginner's Tutorial[^]
Understanding and Implementing ASP.NET Custom Forms Authentication[^]
 
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