protected function createCookieFile($fileName, $withAuth = true)
{
$content = "uk.pinterest.com FALSE / TRUE 1506239919 csrftoken 123456";
if ($withAuth) {
$content .= "\n#HttpOnly_.pinterest.com TRUE / TRUE 1505894318 _auth 1";
}
if (file_exists($fileName)) {
unlink($fileName);
}
file_put_contents($fileName, preg_replace('/ +/', "\t", $content));
}