Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have created 2 users (user1 and user2).

i have logged in as user1 successfully after that if i enter the url of the page that is meant for user2 using address bar, it shows up without user2 being logged in.


Kindly help how to avoid this.

Regards
Arun.
Posted

If you are using asp.net authentication technique:

Asp.net authentication technique sets cookie on successful log-on and sends this to server on each HTTP request. On each page, verify that user is logged-on or not by checking the boolean value of Page.User.Identity.IsAuthenticated property (in C#.NET).
 
Share this answer
 
<deny users="?"> must be set in authorization section of the web.config file of the directory in which that file is residing.
 
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