Filters:after appears to be ignored |
Great! I've got this in events:
Events::on('post_system', function () { if(isset($_SESSION)) { session_destroy(); } }); I guess I have been seeing my flash messages because I've been putting exit() after redirects. Afterwards, though, when they have already seen the flash message, it gets destroyed as intended. So yeah, exit() also prevents 'post_system' events from working - which in my case works out well.
You can see things I made with codeigniter here: itart.pro its not overly impressive as I have very little time to learn.
|
Welcome Guest, Not a member yet? Register Sign In |