vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   automatic user login (https://vborg.vbsupport.ru/showthread.php?t=206463)

looknow12 02-24-2009 01:35 PM

automatic user login
 
Hi,

I want to make user logged in automatically when they go to forums from my website account.

BTW: My web application is in ASP.Net and MS SQL Server.

How can I do this?

Regards,
Krunal

Dismounted 02-25-2009 06:47 AM

You need to set the cookies that vBulletin does. You can find what vBulletin does to log someone in login.php (and follow the breadcrumbs).

ozancigiz 07-20-2009 07:40 AM

Hi,

I am trying to achieve the same thing. Once the user logs into my website, I want them to be automatically logged in to vBulletin. Using the vBulletin login for my website is not an option for me as I do not want to rewrite the code.

I have basically gone through login.php. I am not able to understand certain statements and cannot find any documentation regarding them:

What does the following statements in login.php do?

- $vbulletin->input->clean_array_gpc
- $vbulletin->GPC['vb_login_username'] where is this variable set?
- $vbulletin->GPC['logintype'] where is this variable set?
- $vbulletin->GPC['cookieuser'] where is this variable set?
- $vbulletin->GPC['cssprefs'] where is this variable set?

Once I understand the answer to these questions, I think I will be able to handle my requirement.

Dismounted 07-20-2009 07:55 AM

Once input is cleaned by clean_array_gpc() (the input being GPC - Get, Post, Cookies), it is placed inside an array called "GPC". :)

ozancigiz 07-20-2009 08:06 AM

Apologies, but in the code for login.php, I have not seen any of these variables set.

Where are these variables set?
My understanding is, I will clean GPC first, and then set all of these variables.

Call verify_authentication function followed by process_new_login function and that is it.

However, I need to understand where and how these GPC variables are set?

Dismounted 07-20-2009 11:47 AM

Variables such as $_POST['var1'] get transposed into the GPC array when cleaned by the input cleaner.


All times are GMT. The time now is 02:35 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.00948 seconds
  • Memory Usage 1,714KB
  • 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
  • (6)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