i am trying to create user session from external php file but it is not working i am using below code
define('XF_ROOT',$xfPathRoot);
require(XF_ROOT . '/src/XF.php');
XF::start(XF_ROOT);
$app = XF::setupApp('XF\Pub\App');
$app->start();
// assume i have user object...