All,
I followed the guide called: synchronizing_minibb on your site (excellent guide by the way...thanks for putting that together) to authorize users using my built in authentication system.
In my database, I have a field called 'IsAdmin'. In 'bb_cookie.php' in the 'user_logged_in' function, I have the following lines: if($isAdmin==1) { $GLOBALS['logged_admin']=1; $GLOBALS['logged_user']=0; } else { $GLOBALS['logged_admin']=0; $GLOBALS['logged_user']=1; }
This seems to work just fine. I can post as a user, view profiles, etc etc. When I log in with an admin user, I see the 'Administrative Panel' link at the bottom of any forum pages. When I'm logged in as a normal user, I don't see this link. However, when I click this link as an admin, it takes me to bb_admin.php and asks me to log in.
Does anyone know why the system is not allowing me into the admin panel without reauthenticating? I want the authentication to be automatic. I don't want admins to have to relogin when they go to the admin panel if this is possible.
Thanks for any help!! Kevin |