Title: Disabling PHP sessions
Last modified: July 2, 2020

---

# Disabling PHP sessions

 *  Resolved [Viktor Nagornyy](https://wordpress.org/support/users/viktorix/)
 * (@viktorix)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/disabling-php-sessions/)
 * Hey,
 * I noticed Helpful uses PHP sessions by default, creating sess_ files. Can it 
   be disabled? I didn’t find any settings for this. It would be good to have a 
   setting or constant to set to disable PHP sessions (similar to how the Easy Digital
   Downloads plugin does it).
 * Thanks.

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

 *  Plugin Author [Pixelbart](https://wordpress.org/support/users/pixelbart/)
 * (@pixelbart)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/disabling-php-sessions/#post-13062170)
 * Thanks for your feedback, again!
 * With the latest update you can disable the sessions. If you are using version
   7.3+ of PHP, then the cookies will also include the samesite. You can find more
   about this in the changelogs:
 * [https://github.com/pixelbart/helpful/releases/tag/4.2.25](https://github.com/pixelbart/helpful/releases/tag/4.2.25)
 *  Thread Starter [Viktor Nagornyy](https://wordpress.org/support/users/viktorix/)
 * (@viktorix)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/disabling-php-sessions/#post-13066363)
 * There seems to be an issue with object cache and disabling sessions, in our case
   Redis. If I disable sessions with [Redis object caching](https://wordpress.org/plugins/redis-cache/)
   enabled, I get 502 error and PHP error log shows this:
 *     ```
       PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 4096 bytes) in /wp-content/plugins/helpful/core/classes/class-helpful-helper-values.php on line 192
       ```
   
 * I’ll need to do more testing over the next few days, but thought I’ll mention
   it.
 * Samesite cookie seems to be working. Thanks.
 *  Plugin Author [Pixelbart](https://wordpress.org/support/users/pixelbart/)
 * (@pixelbart)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/disabling-php-sessions/#post-13066895)
 * Hi [@viktorix](https://wordpress.org/support/users/viktorix/)
 * Thanks for your feedback. I can’t reproduce the error on me. Maybe increasing
   your memory limit will help. There are many posts on Google about this. Here 
   is a good summary: [http://dailyblogging.org/wordpress/increase-wordpress-memory-limit/](http://dailyblogging.org/wordpress/increase-wordpress-memory-limit/)
 * To set the memory limit to 256 if your server allows it. Sites that protect themselves
   with WordFence, for example, always need a higher memory limit. Possibly this
   is also the case with your caching method.
 * Otherwise you can install the plugin for PHP sessions. Maybe it is not only Helpful
   with the sessions, but also another plugin: [https://de.wordpress.org/plugins/wp-native-php-sessions/](https://de.wordpress.org/plugins/wp-native-php-sessions/)
 * The plugin handles most errors with sessions. For example, no more errors will
   be displayed under Site Health in WordPress regarding the timeout for the API.
    -  This reply was modified 5 years, 10 months ago by [Pixelbart](https://wordpress.org/support/users/pixelbart/).

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

The topic ‘Disabling PHP sessions’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/helpful.svg)
 * [Helpful](https://wordpress.org/plugins/helpful/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/helpful/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/helpful/)
 * [Active Topics](https://wordpress.org/support/plugin/helpful/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/helpful/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/helpful/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Pixelbart](https://wordpress.org/support/users/pixelbart/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/disabling-php-sessions/#post-13066895)
 * Status: resolved