• Resolved carlosvai

    (@carlosvai)


    Hi. I had problems in the past with my server, the issue was a high number of innodes.
    When I checked the problem, it was the /tmp folder, which had hundreds of thousands of theses “sess_” files.

    Upon investigation, I found out they were being generated by Ultimate Member (when I disable the plugin, the sess_ generation stops).

    I’m currently managing the issue via cron job to delete those files twice a day.
    But is there any way to avoid the files generation in the first place?

    Most are 0 bytes, but some have about 300 bytes.
    https://ibb.co/84kWX7L

    This is the content

    um_sso_storage|a:7:{s:16:"_um_shortcode_id";s:5:"DbDyB";s:26:"_um_social_login_key_gteq0";s:5:"47411";s:24:"um_social_login_redirect";s:29:"https://mysite.com/register";s:26:"um_social_login_rememberme";s:1:"1";s:29:"um_sso_has_dynamic_return_url";b:1;s:18:"um_sso_current_url";s:29:"https://mysite.com/register";s:26:"_um_social_login_key_dbdyb";s:5:"47411";}

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • @carlosvai

    These files are PHP Session files.
    The lifetime of session files are set in session.gc_maxlifetime in php.ini.
    You can see these values in a phpinfo() listing.

    https://www.php.net/manual/en/session.configuration.php

    Ask your web hosting support what’s wrong with this php.ini session file settings or if it’s a folder permission issue with the tmp folder.

    • This reply was modified 1 year, 7 months ago by missveronica.
    • This reply was modified 1 year, 7 months ago by missveronica.
    • This reply was modified 1 year, 7 months ago by missveronica.
    • This reply was modified 1 year, 7 months ago by missveronica.
    Thread Starter carlosvai

    (@carlosvai)

    Thanks as usual @missveronicatv for your time and knowledge!

    I checked my phpinfo and I see that my “session.gc_maxlifetime” is correctly settled at default “1440”. Sorry my ignorance… but are these seconds, minutes?

    Two last questions abusing your kindness.
    1) Are these sess files originated by UM? Because the moment I deactivate the plugin they stop.
    2)Is it normal to be generated 3 of them every minute (I have only 100 members so far)

    Thanks again!

    @carlosvai

    session.gc_maxlifetime specifies the number of seconds after which data will be seen as ‘garbage’ and potentially cleaned up. Garbage collection may occur during session start (depending on session.gc_probability and session.gc_divisor). Defaults to 1440 (24 minutes).

    This cleanup is made by your server OS depending on server settings.
    Ask your web hosting support if they can see why this cleanup is missing.

    Thread Starter carlosvai

    (@carlosvai)

    Thanks again! Will surely do!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Thousands of daily sess_ files’ is closed to new replies.