Security Provider Issue with Server Side Redirection in SPA PHP

Could you perhaps send me your project files in a private message so that I can see how exactly you are using the security provider.