How to check if Admin is logged in front page of Opencart 2.3?

You should be in same browser. Now go to any controller and insert the code to check if user_id is set in the session. For example: Go to catalog/controller/common/header.php Inside the index() method add following code: if($this->session->data[‘user_id’]){ echo ‘Admin is logged in’; }else{ echo ‘Admin is not logged in’; } Another way initialize the user … Continue reading How to check if Admin is logged in front page of Opencart 2.3?