Added usersessions/delete function
parent
0227f31cdd
commit
808fdcc915
|
@ -77,5 +77,9 @@ switch($cmd) {
|
||||||
case 'exists':
|
case 'exists':
|
||||||
echo $exists;
|
echo $exists;
|
||||||
break;
|
break;
|
||||||
|
case 'delete':
|
||||||
|
$query = "UPDATE sessions SET session_active=0, session_end=NOW() WHERE agent_id='$agent_id' LIMIT 1";
|
||||||
|
$deleteresult = mysql_query($query);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue