/**	Function used to unset the server session id for the customer
 *	@param int $id - contact id to which customer we want to unset the session id
 **/
function unsetServerSessionId($id)
{
    global $adb, $log;
    $log->debug("Entering customer portal function unsetServerSessionId");
    $adb->println("Inside the function unsetServerSessionId");
    $id = (int) $id;
    Vtiger_Soap_CustomerPortal::updateSessionId($id, false);
    $adb->pquery("delete from vtiger_soapservice where type='customer' and id=?", array($id));
    $log->debug("Exiting customer portal function unsetServerSessionId");
    return;
}