Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

restrict different users to certain parts of site

Status
Not open for further replies.

kevpho

Programmer
Jun 9, 2003
47
CA
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
 
Sorry, never mind the question. I wasn't thinking. Just a simple if statement at the top works fine.

Kevin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top