Skip to content

Commit 89c095a

Browse files
committed
Cleanup cookiejar
1 parent 4be51e1 commit 89c095a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/client_auth.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ function call($method, $url, $data = false) {
2626
// in case you are using php-api-auth:
2727
$csrf = call('POST','http://localhost/blog.php/', 'username=admin&password=admin');
2828
$response = call('GET','http://localhost/blog.php/posts?include=categories,tags,comments&filter=id,eq,1&csrf='. trim($csrf));
29+
30+
unlink($cookiejar);
31+
2932
$jsonObject = json_decode($response,true);
3033

3134
$jsonObject = php_crud_api_transform($jsonObject);

0 commit comments

Comments
 (0)