Logging out after certain amount of time
<p>What would the best way be to logout a user from a PHP application (so basically just perform a redirect) after X seconds of inactivity? For "inactivity" I'd count the time of the last page load, and if the current time is more than X seconds away, perform the redirect.</p>

<p>Is this something that would need to be achieved with Javascript?</p>
