I did it! It logs me out after 5 minutes od idle time.
I did it with mktime at logon and current mktime...then I subtract them and if logon_mktime is smaller, it logs me out! :-)
But.. I have a column "status" in users table...and IF a user CLOSES the browser (doesn't use the logout link), the status stays logged_in (1)... How do I change that to not_logged_in (0)?