Suppose, consider you logged into a site by entering username and password.
Now, you will be redirected to home page after authenticating username and password from the database.
So, what happens if any other user paste the home page URL in his browser? obviously, he will get the home page screen, when Authentication is not used.
Rather, if authentication is used, he will be redirected to login page with the return URL
Consider you are the admin, and want to monitor the invalid login attempts of other users.
So, in this case, you will create pages like admin.aspx, login.aspx and home.aspx
consider some pages Ex: admin.aspx will be in Admin folder.
Now, you register admin. user and grant admin role
So when you login with admin credentials, you will be redirected to admin page.
Similarly, normal users will be redirected to home page, but they cannot access admin page, because they are not authorized
to view admin page.
The pages outside the admin folder are accessible to all users who are successfully logged in.
And the pages inside admin folder are accessible only to admin, since that folder has only admin role.
To understand this concept clearly, do, workout with whatever example I have given.
Note: I suggest you to use web administration tool for granting roles, etc.Sivakumar.S, if this helps please login to Mark As Answer. | Alert Moderator