Create a login form with a username and password. Once the user logs in, the second form should be displayed to accept user details (name, city, phoneno). If the user doesn’t enter information within a specified time limit, expire his session and give a warning otherwise Display Details($_SESSION).

Login.html
<html>
<form method="POST" action="login.php" >
<p>User Name: <input type="text" name="user"><br>
<p>Password :<input type="password"><br><br>
<input type="submit" value="Login"><br>
</form>
</html>
Login.php
<?php
$auth_yes=0;
session_start();
session_register();
#tm=time();
?>

<form method="GET" action="new.php">
<fieldset>
<legend>Enter username and password</legend>

<p>Roll_No:&nbsp&nbsp&nbsp<input type="text" name="rno"><br>
<p>Name:&nbsp&nbsp&nbsp<input type="text" name="nm"><br>
<p>City:&nbsp&nbsp&nbsp:&nbsp&nbsp&nbsp<input type="text" name="ct"><br><br>
<input type="submit" value=Submit>
</form>
New.php
<?php
$a=$_GET['rno'];
$b=$_GET['nm'];
$c=$_GET['ct'];
session_start();
$newt = $tm+60;
if($newt > time())
echo"time out";
else
{
echo"Roll_No=$a"."<br>";
echo"Name=$b"."<br>";
echo"City=$c"."<br>";
}
session_destroy();

?>