PHP Ecom Part 6 : How to make Admin login and middleware in PHP | User and Admin Roles

preview_player
Показать описание
In this video, you will learn how to make admin login and protect the admin pages using the admin middleware in php. We will check the user role and redirect the user to their respective pages like dashboard or the home page.

If the video helps you, hit the like button and subscribe to the channel. If you have any doubts or suggestions, drop them in the comments below and i will answer them.
Thanks for watching

Рекомендации по теме
Комментарии
Автор

I follow your instruction slowly but still getting issue

When you login as user and you go to the admin page you still getting login successful in index.php

cristiasknight
Автор

Hello Sir, everything is fine but at this lesson facing a problem. Otherwise all ok, the problem is if I login as a public and try to access admin then getting this warning Warning: Cannot modify header information - headers already sent by (output started at in on line 7

mahbubafaruki
Автор

You have error in register.Php you cannot add another user in database if you resolve this problem plz share me solution

ismailbouchghel
Автор

Thank you so much for your tut,
i need somehelp if u have time,
about role, if i need the admin login normel like user, but in dropmenu, show item Dashboard for admin and hide for user,
can u wrote to me the code if u have time ?!

mo-awny
Автор

pls help i get this error when i try going to admin index but not logged in any account
Warning: Cannot modify header information - headers already sent by (output started at in on line 21

GongagaMan
Автор

Warning: Cannot modify header information - headers already sent by (output started at in on line 21

please help me

debashishbasu
Автор

sir i'm facing issue in admin middleware file can you please help me out

biketoride
Автор

If i am included side bar then I facing this issue

debashishbasu
visit shbcf.ru