Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jun 2010
    Posts
    59
    Thanks
    0
    Thanked 0 Times in 0 Posts

    restrict some page access to users

    Hi

    Im looking for a idea or example to restrict access to some pages

    like user type "editor" can only access to editnews.php
    user type "user" can access several pages
    user type "superuser" can access all pages etc...


    hope someone can understand what i mean. sorry for the language errors

    Regards

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,548
    Thanks
    8
    Thanked 1,094 Times in 1,085 Posts
    You need some sort of login script (PHP).
    Depending on how many users you have and how elaborate the "user profile"
    needs to be, the script could take on many variations. The bottom line is
    the use of PHP SESSION to keep track of who is logged-in (their access level).


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •