vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Login / Cookies / Session hash Question (https://vborg.vbsupport.ru/showthread.php?t=153256)

dkartik 07-24-2007 02:50 PM

Login / Cookies / Session hash Question
 
Ok, I've seen a number of old posts about this process, but they don't seem to be helping out with the change of how the login system works, so I'm going to try and ask it from a different angle. I am an administrator for a University web site that already has a CMS, with an in-house php script designed to authenticate users and keep them logged in across the CMS as well as applications that have been developed outside of the CMS.

We just purchased vBulletin a few weeks ago, and I've been trying to figure out a way that we can use our script (which sets cookies for the user) to login users into vBulletin. I was just hoping that people that are more knowledgeable about this forum could help me figure out the process of the login system. I assume that if I want the user to be logged in from outside of the forum, I'll have to set the cookies as well as a session hash. Does anyone know how to duplicate those things. Also, is there any way to bypass setting the password cookie? Thank you very much in advance for any help that you guys give.

Dismounted 07-25-2007 10:41 AM

Here are the cookies to set:
PHP Code:

setcookie(COOKIE_PREFIX 'password'$passwordtime() + 14400);
setcookie(COOKIE_PREFIX 'userid'$useridtime() + 14400);

$password md5(md5(md5($password) . $salt) . $license); 

Not setting a password cookie would be a compromise of security, would it not?

iansmith 08-08-2007 08:49 PM

I am interested in doing this as well. I have a login system and would like to log the user into vbulletin as well.

Is there a way I can call process_new_login() from another program? A stand-alone php script that took a username and called process_new_login with the right options would be just perfect.

Thanks.


All times are GMT. The time now is 10:26 AM.

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.01028 seconds
  • Memory Usage 1,715KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete