Grazie br1, nel frattempo avevo trovato anche questo
http://www.html.it/wp-content/upload...67/esempio.htm
Dovevo creare una redirect alla pagina di logout dopo tot tempo di inattività:
codice:<script type="text/javascript"> var temps=0; function go() { if(temps<300){temps++} else window.top.location.href='./logout.php'; setTimeout('go()',1000) } </script> <body onmousemove="temps=0" onload="go()">