cURL cookie clear issue