В DAX 2009 басня сильно сокращена и приравнена к приведенному выше совету
X++:
void logon(userId webUserName)
{
WebSession webSession = webSession();
WebApplication wappl = webSession.webApplication();
;
// in this code, we are no longer reading the language from SysUserInfo,
// as infolog.language() returns the user's preferred language
// either specified in SysUserSetup form (stored in userInfo table)
// or (if) overridden from command line/BC Logon option
//sysCompanyUserInfo check is not required, A user relation is required for some scenarios
//which give an expected error message if a user relation is not found
//sysCompanyUserSiteAccess check is not required.
//In 4.0 the record may not be present in this table if the groups are being managed outside of Ax
//This is more common in WSS 3.0 with cross site groups
wappl.userLoggedOn();
}
И дополнительный вопрос - как выполнить определенные действия при "отваливании" пользователя....