Yes.  What you will have to do is to write a little piece of code in the
Application.startup() method that traverses through sessions, compares
the logged on sessions' user id's to the current user + session id, and
does an xInfo.shutdown() if the current user is already logged on with a
different session id.

For example, a little like this (the try-catch is to prevent a
Ctrl-Break situation):

    int         maxSessions = Info::licensedUsersTotal() ?
Info::licensedUsersTotal() : 3;
    int         i;
    xSession    session;
    ;
    for(i = 1; i <= maxSessions; i++)
    {
        session = new xSession(i, true);
        if(session.userId() == curuserid() && session.sessionId() !=
sessionid())
        {
            try
            {
                Box::info("You are already logged on.  Good bye!");
                new xInfo().shutDown(true);
            }
            catch(Exception::Break)
            {
                new xInfo().shutDown(true);
            }
        }
    }

________________________________

From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of kamchung322
Sent: Friday, May 13, 2005 1:25 AM
To: [email protected]
Subject: [development-axapta] Deny user log on concurrently


Hi,

Is it possible to deny user log on concurrently ?

Regards

Kenneth.






________________________________

Yahoo! Groups Links


*      To visit your group on the web, go to:
      http://groups.yahoo.com/group/development-axapta/
       
*      To unsubscribe from this group, send an email to:
      [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]
be>
       
*      Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service <http://docs.yahoo.com/info/terms/> .




[Non-text portions of this message have been removed]





Yahoo! Groups Links

Reply via email to