Is there a way to automatically kick an old session when a new one connects?

Hi everyone,

I am using Pritunl and I want to enforce a “one session per user” policy. However, instead of rejecting the new connection when a user is already online (which happens when “Allow Multiple Devices” is disabled), I want the server to automatically disconnect/kick the older session and allow the new connection to take over.
(because sometime the user forgot login device in other place)

Is there a built-in setting for this “session bumping” behavior, or do I need to implement a custom script/plugin to achieve this?

Thank you!

When multiple devices is enabled that functionality is disabled. There is Max Devices option in the advanced server settings to control the maximum devices each user can have connected.