Logout link for Joomla 1.5, 2.5

Joomla 1.5 Logout Link

$returnURL = base64_encode(JURI::root() . “”);
$user =& JFactory::getUser();
echo ‘Hi,’.$user->username;

<a href=”index.php?option=com_user&task=logout&return=<?php echo $returnURL; ?>”>
<input  type=”button” name=”Submit” value=”Logout”></a>

Joomla 2.5 Logout Link

<a href=”index.php?option=com_users&task=user.logout&<?php echo JUtility::getToken(); ?>=1″>
<input  type=”button” name=”Submit” value=”Logout”>


Edit profile link for joomla 2.5

<a href=”<?php echo JRoute::_(‘index.php?option=com_users&view=profile&layout=edit’)?>” title=”My Profile”>Edit Profile</a>



Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s