I'm sure you would have check this, but the only thing I can think of is that the page you are redirecting to is restricted. Have you double checked to make sure that 'ending' page does not require you to be logged in?
I'd love to change the world... but they won't give me the source code!