Invalid token on Logout - Using Yougrids Template
Can log in fine
When logging out, I get Invalid Token
(I did notice that before trying to log out, I put my cursor over the logout button and it referenced [at the bottom] what page I was on. [Example - forum.html or resources.html])
don't know what that's about -
BUT I CAN'T LOGOUT
I've read what I could about this topic - but still not working
- I'm Going Crazy
I hope someone is kind enough to help - thanks
here is the code in my file: mytemplate/html/mod_login/default.php
<?php if ($type == 'logout') : ?>
<form action="<?php echo JRoute::_('index.php', true, $params->get('usesecure')); ?>" method="post"
id="login-form">
<?php if ($params->get('greeting')) : ?>
<div class="login-greeting">
<?php if($params->get('name') == 0) : {
echo JText::sprintf('MOD_LOGIN_HINAME', $user->get('name'));
} else : {
echo JText::sprintf('MOD_LOGIN_HINAME', $user->get('username'));
} endif; ?>
</div>
<?php endif; ?>
<div class="logout-button">
<input type="submit" name="Submit" class="button" value="<?php echo JText::_('JLOGOUT'); ?>" />
<input type="hidden" name="option" value="com_users" />
<input type="hidden" name="task" value="user.logout" />
<input type="hidden" name="return" value="<?php echo $return; ?>" />
<?php echo JHtml::_('form.token'); ?>
</div>
</form>