 <p>Preventing the user from using the functionality of Screen is bad form (unless you have a shared login which runs your application).</p> <p>Instead, make your application deal with the use case you've shown by autologout, warning new connecting users and giving them the option to boot the other user, handling multiple users, etc.</p>