vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Automatically Logging a user in (https://vborg.vbsupport.ru/showthread.php?t=118609)

JBankson 06-14-2006 09:45 PM

Automatically Logging a user in
 
We have a website where our users sign up for membership. In doing so we are creating their V-Bulletin users automatically behind the scenes so that they do not have to register for our site AND register for the forums. What would be really nice is when the user logs in to our membership area if we could automatically log them in for V-Bulletin as well so that if they visit that area it is seemless. Right now they would have to login twice, once for the members only area and once to login to V-bulletin.

Is there a way to set the cookie that v-bulletin expects? Or is it possible to call a method that will log the user in (kind of like how we create the user)?

Thanks!

calorie 06-21-2006 06:56 PM

What method do you use to tell whether a user is logged into the membership area?

bigbobchamp 07-17-2007 12:16 AM

Does anyone have a solution to the OP's question? I'm sure I'm one of many who are looking to do this.

Edit: found this -> https://vborg.vbsupport.ru/showthread.php?t=108026

patrickb 07-17-2007 06:06 AM

My solution to the problem is 2-fold.

First, I assume that the authentication is done by your own website.

If the user is authenticated, I do 2 things :
  1. Create sessionhash and a userid cookies on the user's client
  2. Add the session information to the database

I basically mimic what vBulletin does. You can look into the functions_login.php file and dig through it to see what to do exactly.


All times are GMT. The time now is 02:17 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.01016 seconds
  • Memory Usage 1,713KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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