Forum Moderators: coopster
if you use database then you can store there information, eg
user, permission
root, 5
mark, 4
jane, 2
, 1 then in php get user name
$user = $_SESSION["user"];
ask database, eg mysql: SELECT permission FROM base.table WHERE user='$user';
And then you have variables user and his permission level.
Hope it answers you a bit.
Best regards in New Year!
Michal Cibor
If you need to have permissions set for an unknown period of time you should probably think about using cookies and setting them to expire after an hour or erase them when users "log out"