www.LinuxHowtos.org
Shell Autologout with TMOUT
Adding the TMOUT environment variable to your shell startup scripts will automatically log out of an interactive shell after the specified number of seconds.
Code Listing 1: .bash_profile
// Timeout if no input is given for 1 hour
TMOUT=3600
From http://www.gentoo.org/news/en/gwn/20040412-newsletter.xml