02-17-2017, 02:16 AM
Hey,
there are several login tutorials available. Just search for e. g. codeigniter 3 login tutorial and you will find a bunch of nice descriptions how to realize a login for your page.
With these basics you are able to wrap up your admin sites into a closed area.
The easiest way is to set some $_SESSION data like "login = TRUE" after the login was successfull.
Then you implement a check in every controller within your admin area, if user is logged in and has access to this controller. If not, redirect him to login page.
I hope this will help you ;-)
Best regards from Germany
there are several login tutorials available. Just search for e. g. codeigniter 3 login tutorial and you will find a bunch of nice descriptions how to realize a login for your page.
With these basics you are able to wrap up your admin sites into a closed area.
The easiest way is to set some $_SESSION data like "login = TRUE" after the login was successfull.
Then you implement a check in every controller within your admin area, if user is logged in and has access to this controller. If not, redirect him to login page.
I hope this will help you ;-)
Best regards from Germany