Title: Critical Issue: Active PHP session detected
Last modified: October 16, 2020

---

# Critical Issue: Active PHP session detected

 *  [juppi91](https://wordpress.org/support/users/juppi91/)
 * (@juppi91)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/critical-issue-active-php-session-detected/)
 * Hey there,
 * I am running a wordpress installation (version 5.5.1) with several plugins including
   WordPress File Upload (version 4.14.4). Today the site health check reported 
   an active php session and related issues with the rest API and loopbacks. The
   php session error reads as follows:
 * “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.”
 * After searching for the session_start() string, I found that the WordPress File
   Upload plugin does use it. After deactivating the plugin the site health check
   ran without any issues. That’s why I think the issue is related to this plugin.
 * Maybe you can have a look at the issue and probably do a fix on it.
 * Thank you in advance and best wishes,
    Juppi

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

 *  Plugin Author [nickboss](https://wordpress.org/support/users/nickboss/)
 * (@nickboss)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/critical-issue-active-php-session-detected/#post-13545804)
 * Hi, go to plugin’s Settings in Dashboard. What is the value of User State Handler
   option?
 * Regards
 * Nickolas
 *  Thread Starter [juppi91](https://wordpress.org/support/users/juppi91/)
 * (@juppi91)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/critical-issue-active-php-session-detected/#post-13545847)
 * Hey Nickolas,
 * thanks for the quick reply. The value of the User State Handler is “session”.
   
   I switched it to “Cookies/DB (default)” and it seems that this solves the issue.
 * Thanks for your help!
 * Regards, Felix
    -  This reply was modified 5 years, 7 months ago by [juppi91](https://wordpress.org/support/users/juppi91/).
 *  Plugin Author [nickboss](https://wordpress.org/support/users/nickboss/)
 * (@nickboss)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/critical-issue-active-php-session-detected/#post-13546633)
 * Ok good. Let me know if you have any problems.
 * Regards
 * Nickolas

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

The topic ‘Critical Issue: Active PHP session detected’ is closed to new replies.

 * ![](https://ps.w.org/wp-file-upload/assets/icon-256x256.png?rev=3252590)
 * [Iptanus File Upload](https://wordpress.org/plugins/wp-file-upload/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-file-upload/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-file-upload/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-file-upload/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-file-upload/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-file-upload/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [nickboss](https://wordpress.org/support/users/nickboss/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/critical-issue-active-php-session-detected/#post-13546633)
 * Status: not resolved