Your IP : 10.1.73.149


Current Path : /home/bolconlineco/www/student/
Upload File :
Current File : /home/bolconlineco/www/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(); 
?>