The connection stay alive for about 3 minutes.
I have not found a PHP API command to disconnect the connection.
If you place an new call than Filemaker Server reuse the active connection or makes an new one.
Which version server?
We had a lot of trouble in FMSv11 having sticky connections. With v12
and v13 that problem has gone away.
The admin console may need to be refreshed, don't forget that.
It's the way it's supposed to work, for performance reasons. Retaining the connection for a bit avoids the overhead inherent in reconnecting in case that user remains on the site.
Thanks to everyone for responding!
APICoder: I tried to set my FileMaker object to point to a different file, and then do a search. It didn't disconnect the first one. Which makes a lot of sense in the context of your post: "Filemaker Server reuse the active connection or makes an new one."
Malcolm: It's FMSv13. I made sure to keep refreshing the admin console.
Mike_Mitchell: Is that in case the user triggers the php again?
Yes, exactly. The user will use the same connection if the connection hasn't timed out yet.
If you point to a differnt file and use the same Account, Filemaker re-uses the active connection (or create a new one)
FileMaker can create several connection with the same name, when there are multiple PHP calls fired in a short time .
I did last weekend a speed test with FileMaker Server 12. on Mac Mini Server 2012 (one machine installation)
I write a ShellScript that fired a lot of PHP calls, quickly one after another. ( heavy PHP script )
Filemaker Server create a lot of connections more than 100, still the server was not much slower.
The next test is a two machine installation, I want to see how much faster this setup is .
Finally, I'm going to use an SSD (single machine and on two machine installation), and measure again time.