Your IP : 216.73.216.40


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

<?php

session_start();

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


$s = $_SESSION['username'];
$facultyname = $_SESSION['facultyname'];
$dept = $_SESSION['dept'];
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>