How to use a logoff script to clear authenticated web sessions on a Mac
Introduction
If you use a shared or public account on a Mac running Mac OS X, but are worried about forgetting to sign out of your web sessions, this might be the script solution for you.
Method
Download and install the latest Offset.pkg file from this excellent Github respository.
Create a logout script, such as logout.sh, by typing the following command on the terminal:
Paste in the following script, ammending it if you require current or all users to be cleared:
Permission the new script properly:
Logout, reboot and then log back in to test that the user has been signed out of all web sessions. You can also check the log to see if the script is running here:
Related ► Google Calendars on the Web (01 Sep 2018), Protecting Data with Google Drive (14 Aug 2018), Dealing with confidential information in schools (24 Jul 2018)