AnsweredAssumed Answered

Redirect to external page after logout

Question asked by Richard Coleman on Jun 30, 2016
Latest reply on Jul 5, 2016 by Richard Coleman

Hi All,


I would have expected a question such as this but I cannot find one!


We have a platform from where users log into, and access CRM with a cookie.


Now, when the user logs out of CRM, it should also log them off of the platform. We're using 7.6 at the moment on a LAMP stack.


However, when I try this, I see that my after_logout logic hook fires, but I get errors as Sugar is expecting a JSON response.


I've tried header() and several others. The most promising was the following:


    public function AfterLogout(&$bean, $event, $arguments)


However, this just takes the response, be it a string or HTML, and expects JSON.


Is there any way to redirect to a URL outside the Sugar instance?