I am performing a logout function if user is not approved.
So I created observer controller_action_predispatch which will trigger in all pages so that it will check the approval if not it will logout the user.
The observer triggers in all page when I login for first time, If I logout and login again its not triggering in home page. For other page its coming. If I clear the cache its working for the first time.
Not sure whats is happening.
Is there a observer that wont fail and triggers in all page.