Go4Expert (http://www.go4expert.com/)
-   ASP (http://www.go4expert.com/forums/asp/)
-   -   sign in access to a web folder (http://www.go4expert.com/forums/sign-access-web-folder-t7106/)

vitempest 29Oct2007 20:10

sign in access to a web folder
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.

venkatesanj@hcl.in 31Oct2007 17:40

Re: sign in access to a web folder
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 3Nov2007 08:14

Re: sign in access to a web folder
What web server you are using and what is the OS of your web server is?

All times are GMT +5.5. The time now is 21:19.