Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Number of users allowed to connect to DB

Featured Replies

Hello,  

 

I currently have 3 databases running on filemaker server through a dedicated server. I understand form the filemaker server settings we can set the maximum amount of users that are allowed to be connected to the server. However, is there a way to set the amount of maximum users allowed to connect to a specific database? 

 

In one of the databases I would only like to to allow 1 user to connect to the database at a time. Giving priority to the first connection. Is this possible?

There is no settings in FMS, that allows you to individually set the number of users allowed to connect to each file.

You can create a part of the startup script in each file, a routine, that checks for how many users that is connected to the file and based on that, create actions to either allow or disallow access to more users.


...as always, Wim jumps in with a great answer, which is basically the same as I was typing at the same time....

  • Author

Hahahahah yes, Wim is quick to respond and has responded to all of my questions. Thank you Wim! and thank you Claus. Sounds good I will make a startup script to only allow the first user to connect to that specific database. 


Also, is there a script that can find which users are currently connected to a database hosted by server?

 

 

Also, is there a script that can find which users are currently connected to a database hosted by server?

 

Nope... not by username or other information....

In FMS admin console, you can see a list of currently connected users. Here you can see their usernames and ip addresses.

However, you can not access that information from within the FM file itself...

 

That is....

One way of achieving this would be by having a utility file on the server, use a plugin and acquire information from FMS log files, which can provide such information.

That is, however a pretty involving way....

The other way, is to create internal logging table, where you write an entry every time a user login to the solution. That could be a part of the startup script. Be aware, that you can not track, if a user gets disconnected. Even if you write a logout script, that will not always be triggered, if the user gets disconnected. That will only work, if the user choose to exit the solution the "correct" way, so that this logout script will run....

Sounds good I will make a startup script to only allow the first user to connect to that specific database. 

 

Bear in mind that there are many ways an Opening Script can be bypassed.  So your reliability level here may be somewhat diminished.

 

Steven

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.