vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Security token value always contains "guest" (https://vborg.vbsupport.ru/showthread.php?t=247616)

Trek 07-30-2010 08:47 PM

Security token value always contains "guest"
 
I'm working on a non-VB native page doing a form submit.

Everytime I load the page, it says my security token is "guest". But I'm logged into the forum, etc. My sessionhash is filled out correctly, etc. Not sure what I'm doing wrong. Any suggestions on how to troubleshoot this further?

Lynne 07-30-2010 10:05 PM

If it's a non-vb page, then you will need to allow the page to access the vb database to see if the person is a vb user on your forum, otherwise it won't know that and will put in a security token for an unregistered user, which is "guest".

Trek 07-31-2010 02:27 AM

I did that, included global.php. I'm able to connect to the vB database without a problem, etc. Just for whatever reason, it keeps thinking I'm a guest. Are there any specific variables (other than $db) that I should be adding to the global statement?

Lynne 07-31-2010 02:53 AM

Have you tried printing out the userid as a hidden input field just to see if it gets populated?


All times are GMT. The time now is 11:45 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.00916 seconds
  • Memory Usage 1,706KB
  • 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