Title: PHP session and API connection issues
Last modified: January 21, 2025

---

# PHP session and API connection issues

 *  [rossberenson](https://wordpress.org/support/users/rossberenson/)
 * (@rossberenson)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/php-session-and-api-connection-issues/)
 * The site that utilizes this plugin to connect to Your Membership has been causing
   some issues. I’ve tested this with the default WordPress theme and will all plugins
   deactivated except for this one. When this plugin is deactivated, the issues 
   no longer exist. 
   Per site health:– 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 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.
 * When testing the REST API, an error was encountered:
 * REST API Endpoint: [https://website.com/wp-json/wp/v2/types/post?context=edit](https://website.com/wp-json/wp/v2/types/post?context=edit)
   
   REST API Response: (http_request_failed) cURL error 28: Operation timed out after
   10002 milliseconds with 0 bytes receivedWe have a few functions that interact
   with the WordPress Rest API and this plugin seems to be interfering with that.
   I’m not sure when this issue arose but it could possibly be a conflict with one
   of the recent versions of WordPress. Any suggestions to resolve this issues would
   be greatly appreciated.
 * WordPress and all plugins utilized are updated to their latest versions.

The topic ‘PHP session and API connection issues’ is closed to new replies.

 * ![](https://ps.w.org/login-with-yourmembership/assets/icon-128x128.png?rev=2655115)
 * [Login with YourMembership - YM SSO Login](https://wordpress.org/plugins/login-with-yourmembership/)
 * [Support Threads](https://wordpress.org/support/plugin/login-with-yourmembership/)
 * [Active Topics](https://wordpress.org/support/plugin/login-with-yourmembership/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/login-with-yourmembership/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/login-with-yourmembership/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [rossberenson](https://wordpress.org/support/users/rossberenson/)
 * Last activity: [1 year, 4 months ago](https://wordpress.org/support/topic/php-session-and-api-connection-issues/)
 * Status: not resolved