setNextEvent and requestEndHandler Question


This might be a bit of a noob question, but I have some code running on request end set by the coldbox.requestEndHandler setting. I just run Main.onRequestEnd and put my code in there. However, I’ve noticed that when I do “setNextEvent()” from inside a handler, that code doesn’t fire.

Is there a way to make sure the coldbox requestEndHandler gets fired even if redirecting using setNextEvent()? Would runEvent be better? And along those lines, what is really the difference?

Thanks in advance!