WordPress.org

Forums

Events Manager
[resolved] Not deleting old session files (4 posts)

  1. stalks
    Member
    Posted 2 years ago #

    I just inadvertently took down the entire server by using this plugin.

    The session files are being created in the temp folder, ie.

    sess_0006uj2hrudi9ci9g7oblis6p3
    sess_000j6jt3bshod12jcefbj1jcn1
    sess_000ntp9b70vvjdopkcgkj3ia43

    With content such as
    "events-manager|a:1:{s:7:"notices";s:83:"a:4:{s:6:"errors";a:0:{}s:5:"infos";a:0:{}s:6:"alerts";a:0:{}s:8:"confirms";a:0:{}}";}"

    However it never deletes these files. A new one is created for every visit. If I close the browser, and visit the site again, a new file is created.

    I had 400k+ session files in the temp folder, which increase INODE usage to 100%. No more files could be created on server = CRASH.

    How do I fix this?

    http://wordpress.org/extend/plugins/events-manager/

  2. stalks
    Member
    Posted 2 years ago #

    Okay I hopefully have fixed this by adding
    session.gc_probability = 1
    to php.ini.

    It seemed Debian had set this to 0 by default which meant PHP was not garbage collecting.

  3. agelonwl
    Member
    Posted 2 years ago #

    thanks for updating us.

  4. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    fyi, we don't use sessions anymore since EM 5.3.3, unless you haven't upgraded yet, they'd be old ones from before that weren't deleted

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.