Title: Remove Cookie from getContent
Last modified: June 22, 2024

---

# Remove Cookie from getContent

 *  Resolved [alduinwf](https://wordpress.org/support/users/alduinwf/)
 * (@alduinwf)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/remove-cookie-from-getcontent/)
 * Dear Humans,
 * I have a bunch of sites that I have to administrate using this plugin. In `wp-
   appbox/inc/getappinfo.class.php` you have this line:
 * `$cookie = tempnam( "/tmp", "CURLCOOKIE" );`
 * It creates an empty cookie file in /tmp that never gets deleted (maybe on a reboot,
   but you know). So I was deleting half a million files, with an uptime of just
   20 days.
 * So that is one thing that bothers me. But even worse is that this cookie is not
   even used. Like you have the file create, but `$cookie` is otherwise unused. 
   So my proposal would be to remove this line as it does not seem to be needed 
   anyway.
 * Also, I am not really sure why the first order of business in the very same function
   is to sleep for 3 seconds?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Marcelismus](https://wordpress.org/support/users/marcelismus/)
 * (@marcelismus)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/remove-cookie-from-getcontent/#post-17844293)
 * The sleep/timeout is needed to get informations from some stores (at some servers).
   You can remove it by yourself, but don’t wonder why some sites will detect your
   requests as bot (what it is, literally).
 *  Thread Starter [alduinwf](https://wordpress.org/support/users/alduinwf/)
 * (@alduinwf)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/remove-cookie-from-getcontent/#post-17844317)
 * Fair enough.
 * But the cookie thing is indeed literally unused. It appears once and only once
   in the whole file.
 * > [View post on imgur.com](https://imgur.com/a/pxsSp0e)
 * $cookie exists only once in the file
 * Since I do have a little “backup” (a folder “plugins-disabled”, from when I was
   testing something), I know that an old version used $cookie to provide curl with
   a cookie jar (and even deleted the cookie when done), but all that’s left now
   is creating the file and do nothing with it.
 * Code for old version:
 * > [View post on imgur.com](https://imgur.com/a/TQjje1g)
 *  Plugin Author [Marcelismus](https://wordpress.org/support/users/marcelismus/)
 * (@marcelismus)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/remove-cookie-from-getcontent/#post-17851535)
 * Removed with 4.5.0.
 *  Thread Starter [alduinwf](https://wordpress.org/support/users/alduinwf/)
 * (@alduinwf)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/remove-cookie-from-getcontent/#post-17852248)
 * Thank you very much 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Remove Cookie from getContent’ is closed to new replies.

 * ![](https://ps.w.org/wp-appbox/assets/icon-256×256.png?rev=976882)
 * [WP-Appbox](https://wordpress.org/plugins/wp-appbox/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-appbox/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-appbox/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-appbox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-appbox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-appbox/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [alduinwf](https://wordpress.org/support/users/alduinwf/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/remove-cookie-from-getcontent/#post-17852248)
 * Status: resolved