From 287a42a1930315e32a01430db1f976b44a2d3341 Mon Sep 17 00:00:00 2001 From: The Digital Orchard Date: Mon, 10 Aug 2020 18:08:52 -0700 Subject: [PATCH] dynamic tmp dir --- src/Session.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Session.php b/src/Session.php index c89ad46..83444da 100644 --- a/src/Session.php +++ b/src/Session.php @@ -546,7 +546,7 @@ public function getDefaultOptions() 'Accept-Encoding' => 'gzip', 'Accept' => '*/*', ], - 'curl' => [ CURLOPT_COOKIEFILE => tempnam('/tmp', 'phrets') ] + 'curl' => [ CURLOPT_COOKIEFILE => tempnam(sys_get_temp_dir(), 'phrets') ] ]; // disable following 'Location' header (redirects) automatically