$tokenGUID, STRING_TOK_TYPE => STRING_TOK_TYPE_SES]; $meta = [ META_TEMPLATE => TEMPLATE_CLASS_SESSIONS, META_CLIENT => CLIENT_SYSTEM]; /** @var gacMongoDB $obj */ $obj = grabWidget($meta, $tokenGUID,$errors); if (is_null($obj)) { var_export($errors); echo PHP_EOL; exit('failed to create widget' . $eos); } /** @var gatSessions $template */ $template = $obj->template; $payload = $template->buildExpireSessionPayload($request, $errors); $obj->_updateRecord($payload); echo 'Program ' .((!$obj->status) ? 'failed' : 'succeeded') . $eos;