PDA

View Full Version : How to create vB4 Sessions


blacklabelled
03-13-2011, 07:19 PM
https://vborg.vbsupport.ru/showthread.php?t=152344&highlight=sessions

I have refered to the above documentation however it isnt the same for vbulletin 4. I understand how to set them and refer to them, but not how to create one.

$vbulletin->db->query_write("ALTER TABLE " . TABLE_PREFIX . "session ADD mozillian TINYINT(4) DEFAULT 0 NOT NULL");


^does not work in vbulletin 4. I have refered to the API documentation...

B_Session vB_Session (vB_Registry &$registry, [string $sessionhash = ''], [integer $userid = 0], [string $password = ''], [integer $styleid = 0], [integer $languageid = 0])

I do not quite understand it however. Could someone point me in the right direction