sign in access to a web folder

vitempest's Avatar, Join Date: Oct 2007
Newbie Member
I want to restrict access to certain pages on my web site. They are all contained within one folder. Some of them have links to pages outside of this folder (do not know if this is a problem or not).

I know how to use asp to create a sign in or register page and populate an access data base.

What I do not know how to do is force login for these certain pages only.
0's Avatar
Go4Expert Member
Will give you an optimal solution for this.

Just make a try like this. Have your login username and password in query string along with the current page name.
Just populate these things in the next page load. In page load, check with the database whether this user had permission to access this page. If not redirect the user to the back page itself.

You can achieve this in the previous page click event also.

You have to create table with role and accessibility of pages for that role in the database.

Venkatesan Prabu. J
Izaan's Avatar, Join Date: Oct 2007
Skilled contributor
What web server you are using and what is the OS of your web server is?