Your IP : 216.73.216.40


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

<?php
session_start();
if(!isset($_SESSION['key'])){
	header("location:login.html");
}
$r = $_SESSION['key'];
echo "<div align='right'>";
echo "Welcome ".$r." !!  ";

if($a == 1) {
        $_SESSION['expire'] = time()+1*60;
}
$a = 0;
if(time() > $_SESSION['expire']){
        session_destroy();
        header("location:login.html");
}

$_SESSION['expire'] = time()+1*60;
?>
<div align="right">

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