PDA

View Full Version : Security token value always contains "guest"


Trek
07-30-2010, 08:47 PM
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?