Показать сообщение отдельно
Старый 11.12.2013, 19:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
bojensen: How to Restrict Multiple logins of a same user in AX2009
Источник: http://blogs.bojensen.eu/?p=4766
==============

Copy Paste the Following Code in startupPost method of info class in AOT void startupPost(){    // To restrict user login form second login    xSession session;    SysClientSessions SysClientSessions;    UserId currentUserId;    int counter;    ;    currentUserId = curUserId();        if(currentUserId!=”Admin”) // Allow Admin User to login multiple time    {        while select SysClientSessions            where     SysClientSessions.userId == currentUserId &&                    SysClientSessions.Status […]

Источник: http://blogs.bojensen.eu/?p=4766
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.