Multi User Multi Login
I have two different users in my database (admin & normal user) in two different tables and also two login page. If I login as user, user's home page will be opened, and in case of admin, admin panel will be opened. I am using the same name for session variables e.g. $_SESSION['isLoggedIn']. It is set to true during login. So my question is if I login as a user, I will be able to access admin panel as it checks whether the isLoggedIn is true or not at the top of the page. I don't have much idea how to implement multiple user without using same table for all users. I can use different name for the session variables like isLoggedInUser and isLoggedInAdmin, but don't want to do that. So what is the best way to implement the feature so that one user can't access other user's data.