1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

sign in access to a web folder

Discussion in 'ASP' started by vitempest, Oct 29, 2007.

  1. vitempest

    vitempest New 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.
     
  2. venkatesanj@hcl.in

    venkatesanj@hcl.in New 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.

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

    Regards,
    Venkatesan Prabu. J
     
  3. Izaan

    Izaan New Member

    What web server you are using and what is the OS of your web server is?
     

Share This Page