I have the below code for disconnection. How may I modify this to auto disconnection if no activity for 5 mins, please?
<?php
if(isset($_GET['action'])){
if($_GET['action'] == 'disconnect'){
session_destroy();
header('location:./index.php');
exit();
}
}
?>