I have this for my site: https://www.vbulletin.com/forum/blog...n-your-website
In the end it says
I would like to have a link that can logout.
I have tried this
But there is no value to $hash. Is there a good way to get that value.
In the end it says
PHP Code:
else { echo 'Already logged in'; }
I have tried this
PHP Code:
$hash = vB5_Cookie::get('password', vB5_Cookie::TYPE_STRING);
echo '<a href="https://www.zoopet.com/forum/auth/logout?logouthash=' . $hash . '" class="btn btn-default">Logout</a>';
Comment