vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   VB Login (https://vborg.vbsupport.ru/showthread.php?t=102651)

t0ny 12-10-2005 02:23 PM

VB Login
 
Does VB just look at the username / password in the cookies to test if it is logged in? Will it work without cookies enabled?

I want to login / check if a user is logged in from a non-forum page?

nexialys 12-10-2005 02:52 PM

1- wrong forum, read the forums descriptions before posting

2- without cookie will make a trace in all urls, containing the session ID so your users can login from non-vB pages with the specific hack with that name!

t0ny 12-10-2005 02:58 PM

Sorry, for wrong forum, i am so stuggling to find where to put most of my questions...

Is there anywhere that describes this procedure, i don't mind coding anything, but would just like to know how VB does the login.

I have a main page that supports commenting and blogs and things that people need to login to use. I have decided that the login is going to backonto the vB database, just was not sure if it is done with sessions or purely cookies...

nexialys 12-10-2005 03:01 PM

https://vborg.vbsupport.ru/showthread.php?t=96013
https://vborg.vbsupport.ru/showthread.php?t=91129

akanevsky 12-10-2005 03:02 PM

As Kirby mentioned somewhere, and as is mentioned in my vBulletin API Tutorial:

Authentication Storage

The authentication data is stored in the following way:

$_COOKIE:
{cookiepfx}userid - plain(userid)
{cookiepfx}password - md5(md5(md5('PlaintextPassword'), salt), 'LicenseNo').

TABLE user:
password - md5(md5('PlaintextPassword'), salt)

Note that for cookie, {cookiepfx} is your board's cookie prefix. It is configurable via admincp and is accessible via the COOKIE_PREFIX constant.

t0ny 12-10-2005 03:15 PM

Ok, i am sure this is going to go down like a lead balloon, but here goes. My main site is written in ASP, i have since decided this was a bad move, but it is too far in now..

I can read the cookies and have no issue talking to the vb database, but is there anything that VB does when you login in terms of sessions?? as I would not know how to check this!?

Also is there a description of the cookie, ie where can i find the SALT?>

ConKien 12-29-2005 05:35 AM

Quote:

Originally Posted by Psionic Vision
As Kirby mentioned somewhere, and as is mentioned in my vBulletin API Tutorial:

Authentication Storage

The authentication data is stored in the following way:

$_COOKIE:
{cookiepfx}userid - plain(userid)
{cookiepfx}password - md5(md5(md5('PlaintextPassword'), salt), 'LicenseNo').

TABLE user:
password - md5(md5('PlaintextPassword'), salt)

Note that for cookie, {cookiepfx} is your board's cookie prefix. It is configurable via admincp and is accessible via the COOKIE_PREFIX constant.

Hi Psionic Vision, is it true that if a user did not check [Remember Me] when login, you don't have {cookiepfx}userid & {cookiepfx}password to read using var $_COOKIE? and $_COOKIE can only use when register_global is allowable from the host?

Thanks
CK


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