manu3569
02-07-2010, 07:08 PM
Hi experts,
I'm currently working on integrating our legacy login system with VBulletin. As such, I've created a new plugin for the 'login_verify_success' hook. Next, I'm trying to set a few session variables that are needed by our other system. I'm running into troubles with accessing all the userinfo fields.
The below code works fine, and the session variable is set correctly. (Works for userid, usergroupid, membergroupid, infractiongroupids, username password, and salt)
$_SESSION['userinfo']['username'] = $vbulletin->userinfo['username'];
When I'm trying to access other values such as email or custom fields, the session variables remains empty. Is my syntax incorrect?
$_SESSION['userinfo']['email'] = $vbulletin->userinfo['email'];
I appreciate any advice. Please let me know if you need additional information.
Thanks!
I'm currently working on integrating our legacy login system with VBulletin. As such, I've created a new plugin for the 'login_verify_success' hook. Next, I'm trying to set a few session variables that are needed by our other system. I'm running into troubles with accessing all the userinfo fields.
The below code works fine, and the session variable is set correctly. (Works for userid, usergroupid, membergroupid, infractiongroupids, username password, and salt)
$_SESSION['userinfo']['username'] = $vbulletin->userinfo['username'];
When I'm trying to access other values such as email or custom fields, the session variables remains empty. Is my syntax incorrect?
$_SESSION['userinfo']['email'] = $vbulletin->userinfo['email'];
I appreciate any advice. Please let me know if you need additional information.
Thanks!