Well, if you want to redirect the user after a period of inactivity, you're going to have to use some client-side javascript (a counter that is running starting from page load up to a time period specified by the script)
When it reaches that time, the user is redirected to a timeout script.
-Surojit