hi,
i've been trying to figure out how to restrict different users to certain paths of my website once they have logged in. the website is for an intranet that has 3 separate locations, and basically what i need is to allow some users access to only one location's pages, while other users may have access to all the locations' pages.
currently, my application searches through a db (in access)for username/password information. the db also includes fields that include which locations each specific registered user can access. i'm not sure if my logic is correct, but i currently have session variables that are called "a" if they're allowed to go into location A's pages, "ab" if they're allowed to go into location A's and location B's pages, etc...
is there some script to add to the top of each page to check if the user has permission to be in there depending on the session name? or is there another/better way to do this?
thanks in advance!
kevin
i've been trying to figure out how to restrict different users to certain paths of my website once they have logged in. the website is for an intranet that has 3 separate locations, and basically what i need is to allow some users access to only one location's pages, while other users may have access to all the locations' pages.
currently, my application searches through a db (in access)for username/password information. the db also includes fields that include which locations each specific registered user can access. i'm not sure if my logic is correct, but i currently have session variables that are called "a" if they're allowed to go into location A's pages, "ab" if they're allowed to go into location A's and location B's pages, etc...
is there some script to add to the top of each page to check if the user has permission to be in there depending on the session name? or is there another/better way to do this?
thanks in advance!
kevin