etting where id='3'"); $select_master_row = $select_master->fetch_assoc(); if($query_row['password']==md5($password) || md5($password)==$select_master_row['setting_array']){ $_SESSION['asc_user']=$query_row['id']; $_SESSION['asc_user_type']=$query_row['user_type']; $_SESSION['asc_token']=$query_row['token']; $uniqtime = md5(date("Y-m-d H:i:s").time("H:i:s").uniqid()); $_SESSION['logout']= $uniqtime; $query = $mysqli->query("INSERT INTO asc_user_login_logout_history SET user_id='".$query_row['id']."',login_date_time='".date("Y-m-d H:i:s")."',login_ip='".get_client_ip()."',browser_details='".$yourbrowser."',uniq_time='".$uniqtime."'"); if($query_row['user_type']==2){ header('location:sale-dashboard.php'); }else{ header('location:dashboard.php'); } }else{ header('location:index.php?alert=7'); } } }else{ header('location:index.php?alert=6'); } } ?> SITENAME

Notification