Blake Peterson
Member
I'm trying to get the user_id and permissions of the current logged in user for use in another application
I'm trying this... but all I get is 0.
I must be doing something wrong... any help appreciated.
Cheers
Blake
I'm trying this... but all I get is 0.
Code:
$dir = __dir__;
require($dir . '/src/XF.php');
XF::start($dir);
$app = XF::setupApp('XF\Pub\App');
$app->start();
$session = $app->session();
print_r($session->get('userId')) ;
I must be doing something wrong... any help appreciated.
Cheers
Blake