View Full Version : Registration Gives Full Cookie
Mistah Roth
06-03-2006, 02:27 PM
I've noticed something strange with vBulletin. If you register, it sets your session and lastvisit information in the cookie, but not your userid or password. The userid and password only get set in the cookie after you logon.
Where can you edit it in vb 3.5.4 that makes it so registration also sets this information?
bradsears
06-09-2006, 03:23 PM
I am interested in this as well.
catalin8
06-12-2006, 04:37 PM
me 3
Mistah Roth
06-20-2006, 10:30 AM
Bumped, still need this.
bradsears
06-20-2006, 01:31 PM
I'm interested in it because I am registering via the data manager. I'd just like to be able to log them and set all cookie values without going through login or email verification url.
If somebody describes in this thread how to do it I'll paypal them $5 as soon as I test it.
Thanks in advance.
Brad
Mistah Roth
06-23-2006, 10:29 AM
I dont even use the email verification thing, so as soon as members register, they have a half completed cookie until they log out.
bradsears
06-23-2006, 01:48 PM
My bounty is now up to $10
Brad
Mistah Roth
07-17-2006, 09:58 AM
I'll pay an additional $10
Okay I got impatient and played around, after a while I narrowed it down. In includes/init.php the following sets the session info in the cookie:
$vbulletin->session->do_lastvisit_update($vbulletin->GPC[COOKIE_PREFIX . 'lastvisit'], $vbulletin->GPC[COOKIE_PREFIX . 'lastactivity']);
So basically this is all registering will do, login will add the additional username and password. So in init.php right under that line of code i just added
vbsetcookie('userid', $vbulletin->userinfo['userid']);
vbsetcookie('password', md5($vbulletin->userinfo['password'] . COOKIE_SALT));
Seems a bit sloppy, but it works fine, so ill stick with it until someone else figures out a better way.
bradsears
07-20-2006, 02:46 PM
I'll test this soon. PM me your paypal email because my name is not Mud.
Mistah Roth
07-20-2006, 10:06 PM
Dont worry about payment, I needed this as well, and its a fairly simply fix, just couldnt find where the registration cookie was set until now.
bradsears
07-20-2006, 11:36 PM
respect
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.