protected $session;
public function initController(\CodeIgniter\HTTP\RequestInterface $request, \CodeIgniter\HTTP\ResponseInterface $response, \Psr\Log\LoggerInterface $logger)
{
// Do Not Edit This Line
parent::initController($request, $response, $logger);
$this->session = \Config\Services::session();
// User Access Control
if (!isset($_SESSION['user_logged_in'])) {
return redirect()->to(base_url('/login') );
}
}