View Full Version : Logout issue, non VB page
Kihon Kata
12-10-2008, 12:49 AM
Hello. I am not much of a phpcoder and my original coder is not around, but currently on this page here (http://www.makeuptalk.com/), I am using this code to logout. It takes like 3-4 clicks to logout. <a href="javascript:document.frmlog.logout.value='Log Out';document.frmlog.submit();">Log Out?</a>By searching and reading here, I found that this code works on most sites, but this won't work on my site:<a href="login.php?do=logout&logouthash=$bbuserinfo[logouthash]">Logout</aWe do track the userid and usernames, but how can I get the logout to work better?
If this helps, this code displays the username
<?
echo $username
?>
Thanks for the help!
Dismounted
12-10-2008, 02:58 AM
The logout hash is the same value as the security token (in vBulletin 3.7+).
Kihon Kata
12-10-2008, 05:49 AM
The logout hash is the same value as the security token (in vBulletin 3.7+).
Ok..thanks for the reply
So, what do I exactly do?
Dismounted
12-10-2008, 07:14 AM
Put the security token in the link - you can generate one using this algorithm:
$securitytoken = time() . '-' . sha1(time() . sha1($userid . sha1($salt) . sha1($licenseid)));
Kihon Kata
12-10-2008, 01:22 PM
Put the security token in the link - you can generate one using this algorithm:
$securitytoken = time() . '-' . sha1(time() . sha1($userid . sha1($salt) . sha1($licenseid)));
Thanks for the reply. Can I ask you to show me exactly how I should format it based on my info that I posted? Sorry(and thanks).
--------------- Added 1228960005 at 1228960005 ---------------
EDIT:
fixed
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.