Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I just make a login page with sql server and Asp.net and I have set three fields in session variables
1. userID
2. userName
3. userRoldId


and i have redirect user to specific page. I have some basic questions
1. prevent back button after login
1. some pages allow to logged in user
2. some pages allow to specific role id logged user

do i need to check on every page load and compare session values and accordingly redirect ...
what is the proper way to do it.
Posted

1 solution

 
Share this answer
 
Comments
Muhamad Faizan Khan 21-Apr-15 4:34am    
i am making my own
CHill60 21-Apr-15 4:39am    
The article describes how to use Roles. See also MSDN Walkthrough[^]

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