mysql - PHP user permissions - best practice? -
what best practice manage user permissions php/mysql?
what have column in users table called 'permissions', string compared pages.
if($_session['permissions'] == 'administrator' || $_session['permissions'] == 'moderator'){ // stuff }
i'm sure there better way accomplished in simpler, easier way. recommendations?
how managing 'mysql' permissions? mean controlling actions in website capable of performing database actions, or you're literally needing database access rights management?
if via web, incorporate zend framework's acl if you're looking in depth, or other existing permissions system built in php.
Comments
Post a Comment