| Current Path : /home/bolconlineco/www/aaaaaa/student/ |
| Current File : /home/bolconlineco/www/aaaaaa/student/logout.php |
<?php
ob_start();
include('../includes/connection/connection.php');
session_start();
if(isset($_SESSION['studentname']))
{
$email=$_SESSION['studentname'];
$datatime = date('Y-m-d H:i:s');
mysql_query("update tbl_logs set log_datetime='$datatime' where username='$email'") or die(mysql_error());
unset($_SESSION['studentname']);
unset($_SESSION['rollno']);
unset($_SESSION['studentrole']);
unset($_SESSION['studentstatus']);
header('location:../index.php');
exit();
}
else
{
header("location:../index.php");
exit();
}
session_destroy();
header("location:../index.php");
exit();
?>