Menu

#77 SessionDynamicStore - don't save one-shot sessions

closed-accepted
nobody
WebKit (45)
5
2007-01-02
2006-12-29
No

Patch to SessionDynamicStore.

PROBLEM: Crawler bots generates lot of sessions which aren't used more than once, as crawlers usually doesn't implements cookies.

Although these sessions aren't used they're still swapped to the Sessions directory and occupies space.

SOLUTION: The "one-shot sessions" aren't moved to FileStore on periodical clean-up. They are still saved on Session store shutdown.

This patch greatly reduces number of files in Sessions directory, especially on low traffic server.

Used on production server: http://www.cestovatel.cz/ with no problems (Webware 0.8), ported to last versions.

Download on http://veros.koren.cz/patches/webware-sessionstore.patch

Discussion

  • Veros Kaplan

    Veros Kaplan - 2006-12-29

    patch file

     
  • Christoph Zwerschke

    Logged In: YES
    user_id=193957
    Originator: NO

    That makes much sense, thanks for the patch. It is implemented in the trunk now.

     
  • Christoph Zwerschke

    • status: open --> closed-accepted
     

Log in to post a comment.