In command line type in
w will list all the users who are currently logged in.
To log them off type in the following:
pkill -KILL -u danny
where danny is the username. If ‘danny’ was logged in multiple times e.g locally and via ssh then both will be logged off.