User session management with systemd tool - loginctl

Login into a Linux system is registered, tracked, and managed by a service called systemd-logind and a corresponding command - loginctl

Useful commands - try them out:

loginctl list-sessions
loginctl show-session {{ id }}
loginctl show-user {{ username }}
loginctl terminate-session {{ id }}