vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Obtain UserID from vBulletin Sessions -> External Page (https://vborg.vbsupport.ru/showthread.php?t=178227)

CypherSTL 05-05-2008 07:21 PM

Obtain UserID from vBulletin Sessions -> External Page
 
I am developing an online event registration system mainly for use with LAN Party Events.

I have a bug right now which if you do not check the vBulletin 'Remember Me' box, the registration system doesn't see you as a logged in user, simply because the Cookie holding the UserID is empty.

I'm trying to find a way, if it's possible, to pull the UserID from vBulletin Sessions with as little 'communication' with vBulletin as possible.

The system currently is setup depending on what bridge you have active, is what forum system and user tables it goes to authenticate against.

Dismounted 05-06-2008 11:57 AM

You need to pass the session ID around to every page (this is for users that do not use cookies, ie. not checking remember me). You can see this in action by disabling cookies and browsing your forum. Using the session ID, you can check who it belongs to in the session table.

CypherSTL 05-07-2008 06:53 AM

Quote:

Originally Posted by Dismounted (Post 1510333)
You need to pass the session ID around to every page (this is for users that do not use cookies, ie. not checking remember me). You can see this in action by disabling cookies and browsing your forum. Using the session ID, you can check who it belongs to in the session table.

I'll give it a try, thanks.

Most likely I'll just accomplish this by retrieving the SessionID and storing it as a Variable, or a Session Variable for easy access.


All times are GMT. The time now is 04:42 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.00971 seconds
  • Memory Usage 1,712KB
  • 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
  • (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