hamedatl
04-03-2006, 09:18 PM
Okay, I'm real stuck here. I can't get external non-VB pages to establish a session. I made a test.php at / root directory with the following php code
chdir("forums/");
require_once('./global.php');
$username = $vbulletin->userinfo['username'];
echo "Hello $username";
It of course says "Hello Unregistered", but it does NOT populate the session table! What gives?
(I'm running 3.5.4 and I had this working on another site that runs 3.5.2 -- I really hope it's not a change between the two versions, but I thought I'd throw that out there).
Thanks
UPDATE
I think I got this working by doing
$vbulletin->session->save();
Is there any side effect of this? It looks like this should normally be done by exec_shut_down() in functions.php, but it's not being done.
chdir("forums/");
require_once('./global.php');
$username = $vbulletin->userinfo['username'];
echo "Hello $username";
It of course says "Hello Unregistered", but it does NOT populate the session table! What gives?
(I'm running 3.5.4 and I had this working on another site that runs 3.5.2 -- I really hope it's not a change between the two versions, but I thought I'd throw that out there).
Thanks
UPDATE
I think I got this working by doing
$vbulletin->session->save();
Is there any side effect of this? It looks like this should normally be done by exec_shut_down() in functions.php, but it's not being done.