Your IP : 216.73.216.40


Current Path : /var/www/html/venkat/repo/
Upload File :
Current File : /var/www/html/venkat/repo/session.php

<?php

session_start();

if(!isset($_SESSION['username'])) {
	header("location:login.html");
}


$s=$_SESSION['username'];
echo " <table width = '80%'> <tr> <td>";
echo "<div align='right'>";
echo "Welcome ".$s." !!";

if(time() - $_SESSION['expire'] > 360) {
        session_destroy();
        header("location:login.html");
}

$_SESSION['expire'] = time();




?>


<form method="post" action="logout.php">
<input type="submit"  value="Logout" align="right">
</form> </td> </tr> </table> 
</div>