Joomla 3.X – Log Out And Return To Home Page
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.
{source}
<?php
$mainframe =JFactory::getApplication(); $mainframe->logout();
$allDone=&JFactory::getApplication();
$allDone->redirect(‘/’);
?>
{/source}
I hope this helps someone else out there…
1 Comments
Leave a Reply
very helpfull