vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Registration Gives Full Cookie (https://vborg.vbsupport.ru/showthread.php?t=117543)

Mistah Roth 06-03-2006 02:27 PM

Registration Gives Full Cookie
 
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:

PHP Code:

$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

PHP Code:

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.


All times are GMT. The time now is 02:30 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01430 seconds
  • Memory Usage 1,733KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete