I would like to make sure an extension isn't run, via sessions_end hook, in the control panel.
I'm currently doing this like so:
if ($this->EE->input->get_post('D') == "cp")
{
return FALSE;
}
My question: is there a better or prefered method of having an extension only run a hook on the frontend and not in the CP?