In a form's onAfterProcess PHP I have this code:
1. $app = JFactory::getApplication();
2. $app->logout();
3. $app->redirect("/success", "Successful save");
4. return true;
Works partially. User redirected to /success page and logged out, but no message appear.
Following I swap lines 2 and 3,
1. $app = JFactory::getApplication();
2. $app->redirect("/success", "Successful save");
3. $app->logout();
4. return true;
Works partially. User redirected to /success page and message appear but no logout executed
Is it possible to achieve all 3? Redirect, message and logout?
1. $app = JFactory::getApplication();
2. $app->logout();
3. $app->redirect("/success", "Successful save");
4. return true;
Works partially. User redirected to /success page and logged out, but no message appear.
Following I swap lines 2 and 3,
1. $app = JFactory::getApplication();
2. $app->redirect("/success", "Successful save");
3. $app->logout();
4. return true;
Works partially. User redirected to /success page and message appear but no logout executed
Is it possible to achieve all 3? Redirect, message and logout?