Encapsulated and Extensible.
? ? ? ? username
? , force (superceeded by disconnected)
? , diconnected (Limit to disconnected)
Read a list of servers from local [url removed, login to view] file
test each server? for sessions
if username = session-username or username=all
? if diconnected is false or session is disconnected
? ? ? ? [LOGOFF USER]
? if diconnected is false and session is active and force is true
? ? ? ? [Logoff]
-- If you can write this and understand the first sentence there is more work.