I would like to know what the correct, or recommended, or most common place is to check for expired session, authorization, ACL rights?
In short: do I check
!$session->isActive()
In the controller display method or in view display or should I check in both?
what about the
$user->authorise('example.canDo','com_example')
EDIT: Additional example
I my view.html I include checks like this. (Why? because some examples had them) and I'm starting to get tired of doing this all the time.
if (!$user->authorise('myCom.myAdmin', 'com_myCom') || !$session->isActive()) {
$app->redirect('/index.php?option=com_users&view=login&return=' .
urlencode(base64_encode($this->currPageUrl)));
}