Page 1 of 1

Admin Sessioning

Posted: Wed Sep 26, 2007 12:13 am
by Abdul1983_Mobin
Hey All,

How can you differentiate if an admin or user is logged into the system based on the phpbb 2.0.12 ver. I am having trouble developing the admin sessioning code. Could anyone please help me out. I have currently developed a successful user sessioning login. Thanking you for help.


Abdul

Posted: Wed Sep 26, 2007 12:21 am
by Hemlata
Hello,

You can set user_type while login, as with logged in id you can get whether the user is normal user or admin. so if user is admin then set the user_type as 'admin' in session and then check this value for further requirements.

Hope this will solve your problem.

Regards,

Posted: Wed Sep 26, 2007 9:42 am
by feyd
There is global data carried around in phpBB that signals the user being an admin in that version, if memory serves. It is an old version of phpBB however.