I used this set up to for logging users out of Joomla and return them to the home page.
- I installed Sourcer plug-in to run some PHP. Just a great plug-in to use any ways.
- I create a link in the main menu and set it to registered, so once the login in it shows.
- Create an article called “logout” and add the following code to that page.
$mainframe =JFactory::getApplication(); $mainframe->logout();
I hope this helps someone else out there…