You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$res=mysqli_query($conn,"UPDATE user_log SET logout_time = '$ldate' , status =0 WHERE user_email = '".$_SESSION['login']."' ORDER BY id DESC LIMIT 1");
if(!$res){
die("Error in logout".mysqli_error($conn));
}
session_unset();
$_SESSION['errmsg']="You have successfully logout";