1 Reply Latest reply on Jul 14, 2016 2:45 PM by jormond

    Get(UserCount) & Application Crashes

    smith7180

      I would like to user Get(UserCount) to restrict the number of connections to a file hosted remotely on Filemaker Server.  I have two questions:

       

      • First Question: I'm considered about Get(UserCount) in relation to application crashes.  Consider the following scenario:
        1. A client is restricted to 5 users by a simple If Get(UserCount) > 5 Then Close Application step in the opening script.

        2. 5 clients are currently connected
        3. One client's application crashes or is force quit.  The application could be Filemaker Pro, Filemaker Go, or Filemaker Pro for User Connections (Web Direct will not be used).
        4. The client immediately opens up their application and attempts to connect to the server
        5. Will the Get(UserCount) step fail on account of the previous (crashed) session still being counted?  In other words is there the possibility of a "ghost session" since Server and Client did not properly terminate their session?

       

      • Second Question: Can a script identify if the file is opened from Filemaker for User Connections (as opposed to Filemaker Pro and Filemaker Pro Advanced)?

       

      Thanks.

        • 1. Re: Get(UserCount) & Application Crashes
          jormond

          You will likely find Get ( UserCount ) to not be as helpful as you want for what you are trying to do. Mainly because if someone forcibly disconnects, it will take FMS a little bit to recognize that the client is gone. The timing isn't super long. FMS attempts to stay in contact with the client. After a couple of unsuccessful attempts to contact, FMS drops the connection.