1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

sign in access to a web folder

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

  1. vitempest

    vitempest New Member

    Joined:
    Oct 28, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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

    Joined:
    Oct 19, 2007
    Messages:
    24
    Likes Received:
    1
    Trophy Points:
    0
    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

    Joined:
    Oct 16, 2007
    Messages:
    215
    Likes Received:
    2
    Trophy Points:
    0
    What web server you are using and what is the OS of your web server is?
     

Share This Page