title: Forced user logout in case of internal errors in cakephp3.0
body: <p>I am using cakephp 3.0 ,In my application I want forced user logout or clear session in case if any internal error occurs,How can I accomplish it. Can I make any changes in the error controller and will it able to catch the specific internal errors.</p>