My website has an authorization bug. It logs the user out in various places. For example: when a person pays they go to the paypal page and when they click the return to merchant button they do not go to the thank you page. They end up back at the login page. This prevents affiliates from getting commissions because the tracking pixel is in the thank you page.
The site does this at odd times so it must be the authorization mechanism.
This is the last bug and should be an easy one for someone that understands how the authorization mechanism works.