is it possible to unset session by it's value ?
i have a chat application and it identifies user/pears using session called username , i want to be able to unset each session from admin panel .
i have user session value in admin and i can send it to the chat app to unset that specific user by ajax .
$kick_out = $_post['username'];
if($_session['username'] == $kick_out )
unset( $_session['username'] );
but the thing is i don't want to unset all the $_session['username']
, just the one that has $kick_out value