Need to abort login based on number of active sessions

ldemarioldemario Member Posts: 5
Hi,
We have a customer with 1 license that will be using 3 separate databases for their 3 companies. We are attempting to limit the total number of sessions allowed active in each database so the total in all databases doesn't exceed their purchased/licensed number of users. To do this, we will set a maximum number of sessions in each database.

The problem is that I can't get Codeunit 1 to abort the login process even though the error condition occurs. Does anyone have suggestions?

Comments

  • krikikriki Member, Moderator Posts: 9,118
    In Codeunit 1 Function "CompanyOpen" (ID=1) (In 4.0 this function has ID=30, so no good).
    If you notice the user may not open a new session anymore, use EXIT(0).
    This is NOT usable with version 4.00.

    For 4.0, you can use sendkeys to do it (ALT+F4 to close the form) in case the user may not open a session anymore.
    http://www.mibuso.com/forum/viewtopic.php?t=8731
    http://www.mibuso.com/forum/viewtopic.php?t=7199
    http://www.mibuso.com/forum/viewtopic.php?t=10800

    [/url]
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • ldemarioldemario Member Posts: 5
    Thanks for your help - this is my first experience with this forum and it's great!

    btw - regarding the license issue, MS has granted permission in this case for what we are doing - it's a big $ sale and if the group of companies involved had to purchase 3 licenses the deal would've been killed.
Sign In or Register to comment.