Ignition logout script

I am looking for a script that lets the user log out of vision. what is the best way to do this?

https://docs.inductiveautomation.com/display/DOC81/system.security.logout