Log in

View Full Version : Need help finding logout hash


tdblj98
08-08-2008, 04:19 AM
I have my vBulletin integrated with my sites login. Well everytime I log out vBulletin clears my cookies for the forums but not for the rest of my site. So when someone logs back in it messes up that login session because they already have a cookie for it.

So basically I am trying to find how to access the logout hash...or if you have any ideas on how to solve this problem?

Thanks

Marco van Herwaarden
08-08-2008, 07:14 AM
Best solution might be to clear all cookies on logout. Can probably be done with a plugin during logout.

tdblj98
08-08-2008, 07:14 PM
Does anyone know how vBulletin gets its logouthash. I have script that I integrated with it and the only thing left is allowing the user to logout through the site script and not have to go to the forums. However, it does not work, because I am not getting the right logouthash.

--------------- Added 1218227207 at 1218227207 ---------------

// set the logout hash
$user['logouthash'] = md5($user['userid'] . $user['salt'] . COOKIE_SALT);


This should work but it doesnt

Dismounted
08-09-2008, 07:22 AM
In vBulletin 3.7+, the logout hash has changed to:
$logouthash = sha1($userid . sha1($salt) . sha1(COOKIE_SALT));