Title: PHP session warning
Last modified: February 12, 2019

---

# PHP session warning

 *  Resolved [djason](https://wordpress.org/support/users/djason/)
 * (@djason)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/php-session-warning-2/)
 * Getting many errors every day in the PHP error log. I X’d out paths and such.
   Saw this with both PHP 5.6 and 7.2.
 * [12-Feb-2019 08:06:58 UTC] PHP Warning: session_start(): open(XXXXXX/sess_XXXX,
   O_RDWR) failed: Permission denied (13) in XXXX/wp-content/plugins/before-and-
   after/before-and-after.php on line 61
 * [12-Feb-2019 08:06:58 UTC] PHP Warning: session_start(): Failed to read session
   data: files (path: /var/cpanel/php/sessions/ea-php72) in /XXXX/wp-content/plugins/
   before-and-after/before-and-after.php on line 61

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

 *  Plugin Contributor [richardgabriel](https://wordpress.org/support/users/richardgabriel/)
 * (@richardgabriel)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-session-warning-2/#post-11255797)
 * Hey [@djason](https://wordpress.org/support/users/djason/)!
 * Before & After stores data in the session as one method of tracking if a user
   has completed a goal.
 * This reads like your website is having issues writing data to the session (Permission
   Denied). This is probably something to ask your host about.
 * They are warnings so the software continues to function but it isn’t recording
   conversion data using the session mechanism.
 * Best,
    Richard
 *  Thread Starter [djason](https://wordpress.org/support/users/djason/)
 * (@djason)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-session-warning-2/#post-11264859)
 * Thanks. I talked to our host and they made the following change (for anyone else
   with the same issue). The errors have gone away.
 * In the site’s php.ini file, add:
 * session.save_path = “/tmp”

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

The topic ‘PHP session warning’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/before-and-after_96a3d1.svg)
 * [Before And After: Lead Capture Forms For Wordpress](https://wordpress.org/plugins/before-and-after/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/before-and-after/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/before-and-after/)
 * [Active Topics](https://wordpress.org/support/plugin/before-and-after/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/before-and-after/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/before-and-after/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [djason](https://wordpress.org/support/users/djason/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/php-session-warning-2/#post-11264859)
 * Status: resolved