The original code in the sessions.php was this.
'curl' => [ CURLOPT_COOKIEFILE => tempnam('/tmp', 'phrets') ]
It was throwing errors in PHP 7 so under the advisement of someone on this group, I changed it to this...
'curl' => [ CURLOPT_COOKIEFILE => tempnam(sys_get_temp_dir(), 'phrets') ]
Now I am getting the new error after several month of working fine.