Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 12-10-2005, 02:23 PM
t0ny t0ny is offline
 
Join Date: Nov 2005
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 12-10-2005, 02:52 PM
nexialys
Guest
 
Posts: n/a
Default

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!
Reply With Quote
  #3  
Old 12-10-2005, 02:58 PM
t0ny t0ny is offline
 
Join Date: Nov 2005
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #5  
Old 12-10-2005, 03:02 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 12-10-2005, 03:15 PM
t0ny t0ny is offline
 
Join Date: Nov 2005
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?>
Reply With Quote
  #7  
Old 12-29-2005, 05:35 AM
ConKien ConKien is offline
 
Join Date: Apr 2004
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04398 seconds
  • Memory Usage 2,210KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (5)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete