i have a simple code where i place it in my controller's constructor
$this->output->set_header("Cache-Control: no-store, no-cache, must-revalidate, no-transform, max-age=0, post-check=0, pre-check=0");
$this->output->set_header("Pragma: no-cache");
i use this code for the safety of logout. my question is, Is there a way to put/declare my code as global for each of my controllers? because it will be hard to hard code everything on each controller's constructor.
Thank you for the help.