You can put configuration limits on the number of allowed sessions. See <max_clients> on the Server configuration file.
You can also make the Server disallow new sessions based on a heuristic...