Hi,
I am having trouble with my cURL call because when I run the exec method I loose my current login state in the session. I have tried the two options below, but they have yet to succeed. If there is anything else you want me to tell you that will help you understand my issue, please let me know.
$sessionfile = fopen("sessionfile.txt", "w");
fputs($sessionfile, session_encode( ) );
fclose($sessionfile);
$c->setopt(CURLOPT_COOKIEFILE, $sessionfile);
$c->setopt(CURLOPT_COOKIEJAR, $sessionfile);
$sessName = session_name();
$_COOKIE[$sessName] = session_id();
$_COOKIE['aud_logged_in'] = Session::isLoggedIn();
session_write_close();
$c->setopt(CURLOPT_COOKIE, $sessName."=".$_COOKIE[$sessName].";");