PDA

View Full Version : idhash, session table


tscbh
04-26-2006, 12:32 PM
Could anyone tell me how to get the idhash so that I can insert into the session table.

I think the sessionhash is md5(session_id())

Any suggestion is appreciated.
tscbh

janitor123
08-01-2010, 12:22 AM
I know that this reply is to a very, very old post but I wanted to put here an answer that I found for others that may be looking for it. This is taken from the DrupalVB module to auto login to Drupal. This module sets cookies for vBulletin to look for.

I am using this module with Drupal 6.17 and vBulletin 3.8.4 PL2

The below is in PHP
$idhash = md5($_SERVER['HTTP_USER_AGENT'] . $vbuser['userid']);
$sessionhash = md5($now . request_uri() . $idhash . $_SERVER['REMOTE_ADDR'] . user_password(6));

Speysider
08-01-2010, 06:41 AM
This thread is 4 years old!!!