solaris 9 console inactivity timeout

All,

I log into Solaris 9 server through a command line at the console and want enable a inactivity timer to log out of the server after 5 minutes. How can it be done?

from this link