use whoami for abstracting the session usage