Whole implementation? It's probably the edge cache catching a cookie on the way out, a toggle box somewhere.
The session layer should confirm and only accept that the other SSL-endpoint is an authenticated app. The app should do this as well.
If a toggle box exists that can cause this, I'd wonder how much of else of the implementation is worth saving.