hi all. im looking for a tutorial or a guide to code php script for login access for mutiple use types for eg. guest member staff admin
do any any of you have any tutorial or guide me through it. i know basic login creation and mysql data handling. another thing i am interested is how to show a certain page to certain user. for example when a person visits the site he is able to see the guest page and when if he logs in the system determines if its member staff or admin and displays the relative page.
i am trying to do this by having another coloumn in my database as access level.so what i do is basically check the access level and redirect to another page and when the user logs out kill session and redirect to index or the guest page.
but is this the correct way?