PDA

View Full Version : Including logouthash outside vB?


ex-machina
11-26-2005, 03:23 PM
Hey,

I'm in an usual situation. We're using vB for our forum side, but the rest of our site is ASP and I'm not proficient enough with ASP to completely recode. I've worked my way around the user system so I can have users logged in on the forums on the rest of the site and everything seems to be working fine regardless of cookie settings etc. but unfortunately I can't work out how to include a working log out link on the ASP pages. We're running 3.5.0 and logouthash is driving me insane. Is there any way to build the logouthash for the link through ASP or is that not possible? It's not stored in any tables so I've no way to get it working.

Links to login.php throw up an error with a link to log out properly, but I'd rather my users didn't have to go through an extra page just to log out. On the plus side, it's an extra banner impression, but on the downside it's just not right... Anyone have any idea?

Marco van Herwaarden
11-26-2005, 08:44 PM
$user['logouthash'] = md5($user['userid'] . $user['salt'] . COOKIE_SALT);

ex-machina
11-27-2005, 02:15 PM
I found that, but I can't work out how to transfer that into ASP on a page outside of vB...

Marco van Herwaarden
11-27-2005, 04:34 PM
The user salt is jsut stored in teh user table. The cookie salt is stored in the cookie, just md5 that with the userid.

ex-machina
12-02-2005, 04:12 PM
Ahh I see. Which cookie? The values I see are bblastactivity, bbuserid, bbpassword, bbsessionhash and bbforum_view.