Support » Plugin: Helpful » Disabling PHP sessions

  • Resolved Viktor Nagornyy

    (@viktorix)


    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

    (@pixelbart)

    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

    There seems to be an issue with object cache and disabling sessions, in our case Redis. If I disable sessions with Redis object caching 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

    (@pixelbart)

    Hi @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/

    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/

    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 1 month, 1 week ago by Pixelbart.
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.