Admin Sessioning

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Abdul1983_Mobin
Forum Newbie
Posts: 1
Joined: Wed Sep 26, 2007 12:04 am

Admin Sessioning

Post 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
Hemlata
Forum Commoner
Posts: 35
Joined: Mon Sep 10, 2007 5:40 am
Location: India
Contact:

Post 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,
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
Post Reply