It could be cause of the missing attribute
curl_setopt($ch, CURLOPT_COOKIESESSION, TRUE);
This way curl will be forced to ignore 'old' session cookies and start a new session instead.