Just wondering. If programming something like a message board or a portal, how do you define the difference between admin and user sessions. Setting a session is something like this:
session_register('username')
To define an admin session I read somewhere that it should be like:
session_register('username', 'admin')
and then on all pages that require admin access use the following check:
(isset($_SESSION['username'], admin))
But it doesn't seem to work, anyone help me?