I'm developing a Knowledge Management System in PHP + MySQL, Where I'm keeping Staff and Student in Different Table. Now I'm Facing some Problems in Session Management.
I can access student_profile.php?id=1
, if logged in as student, but if I change the url as staff_profile.php?id=1
, I will be logged in as Staff!
How do I solve this problem?
Also, can I put students and staff on same table? Is there any issue?