We have 2 admin pages. one is for admin and another is for branches. We have 16 branches in our company. I have put 16 branches as different folder. One is for admin section. If I login http://www.xxx.com it asks login page. When admin enters it should go to admin page only. And if any branches try to login http://www.xxx.com, den it should redirect to their respective branches folders. Please tell me how i do dat in php/mysql.
Share
You add a new row in your mysql table called for example
login_typeand for every user you add his login type:So every time an user authenticates you redirect him to his default folder stored in
login_type. And of course you check if he didn’t landed in a different folder.