The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Auto Login
Hey all, still trying to find an auto login script that works on the latest version of vBulletin 3.6x. We have a website w/ a .NET/SQL backend and are integrating this login with vBulletin's.
I am able to authenticate the user fine and set the cookies on the forum server, but for some reason when I go to my forum homepage and hit refresh, the user is not logged in. I have tried various methods as well but no luck. -I try setting the cookies manually: vbsetcookie('userid', $userid, true, true, true); vbsetcookie('password', md5($password . COOKIE_SALT), true, true, true); -I've tried using cURL and sending my user info to login.php -I've tried running this function after I set my cookies too: process_new_login($vbulletin->GPC['logintype'], $vbulletin->GPC['cookieuser'], $vbulletin->GPC['cssprefs']); but no luck Any help? Basically the user session is not created. Am I missing something? THANKS! ************************************************* UPDATE ************************************************* Ok...finally figured it out. I needed to set the username cookie as well: $vbulletin->userinfo = $vbulletin->db->query_first("SELECT userid, usergroupid, membergroupids, infractiongroupids, username, password, salt FROM " . TABLE_PREFIX . "user WHERE username = '" . $vbulletin->db->escape_string(htmlspecialchars_uni($username)) . "'"); vbsetcookie('password', md5($vbulletin->userinfo['password'] . COOKIE_SALT), 0); vbsetcookie('username', $vbulletin->userinfo['username'], 0); vbsetcookie('userid', $vbulletin->userinfo['userid'], true, true, true); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|