Title: REST API and session_start errors
Last modified: June 8, 2023

---

# REST API and session_start errors

 *  [joshpaynedesigns](https://wordpress.org/support/users/joshpaynedesigns/)
 * (@joshpaynedesigns)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/rest-api-and-session_start-errors/)
 * My WordPress website’s Site Health Status checker, is detecting the following
   issues when their plugin is enabled:
    - An active PHP session was detected
 * A PHP session was created by a session_start() function call. This interferes
   with REST API and loopback requests. The session should be closed by session_write_close()
   before making any HTTP requests.
    - The REST API encountered an error
 * The REST API is one way that WordPress and other applications communicate with
   the server. For example, the block editor screen relies on the REST API to display
   and save your posts and pages.
 * REST API Endpoint: [https://iwincontests.com/wp-json/wp/v2/types/post?context=edit](https://iwincontests.com/wp-json/wp/v2/types/post?context=edit)
   
   REST API Response: (http_request_failed) cURL error 28: Operation timed out after
   10000 milliseconds with 0 bytes received
 * [https://iwincontests.com/](https://iwincontests.com/)
   WordPress core: 6.2.2PHP
   version: 7.4
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Frest-api-and-session_start-errors%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [januslock](https://wordpress.org/support/users/januslock/)
 * (@januslock)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/rest-api-and-session_start-errors/#post-16857598)
 * I am seeing the same issues – hope this can be resolved in the next update 🙏🏻
 *  Thread Starter [joshpaynedesigns](https://wordpress.org/support/users/joshpaynedesigns/)
 * (@joshpaynedesigns)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/rest-api-and-session_start-errors/#post-16909781)
 * Any update on this issue?

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

The topic ‘REST API and session_start errors’ is closed to new replies.

 * ![](https://ps.w.org/favorites/assets/icon-128x128.png?rev=1677726)
 * [Favorites](https://wordpress.org/plugins/favorites/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/favorites/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/favorites/)
 * [Active Topics](https://wordpress.org/support/plugin/favorites/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/favorites/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/favorites/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [joshpaynedesigns](https://wordpress.org/support/users/joshpaynedesigns/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/rest-api-and-session_start-errors/#post-16909781)
 * Status: not resolved