The only which i can think of is to ge t its Unix process id
and do ps -ef to check the for how much time that session is sitting idle.