I had this code but I do not Knew how I can add logout after x minutes of inactive in php
login page:
<html>
<head>
<title>login</title>
</head>
<body>
<form action="page1.php" method="get" >
ID:<input type="text" name="id" />
Password:<input type="password" name="pass" />
<input type="submit" value="login" />
</form>
</body>
</html>
get page:
<html>
<head>
<title> get</title>
<body>
<?php
session_start();
$get_id= $_GET['id'];
$get_pass = $_GET['pass'];
$_SESSION['user_id']=$get_id;
$_SESSION['user_pass']=$get_pass;
echo "welcome";
?>
</body>
</html>
now I want this code logout after inactive 10 minutes