Ticket #645 (closed bug: fixed)

Opened 2 years ago

Last modified 2 years ago

jSession : old sessions are not purged with some PHP configurations

Reported by: Julien Owned by: Julien
Priority: normal Milestone: Jelix 1.0.5
Component: jelix:core:jSession Version: 1.0.4
Severity: normal Keywords:
Cc: Php version:
Review: review+ Hosting Provider:
Blocked By: Documentation needed: no
Blocking:

Description

I noticed this on debian/ubuntu, where session.gc_probability is set to 0, so php garbage collector never happens.

These distros use a cron job instead, but it won't purge old sessions in databases or alternative storage folders, as jSession allows us to define.

So if we use personal storage (alternative folder or database) and session.gc_probability is set to 0, we set it to 1 (PHP's default value).

Attachments

645-jSession-old-sessions-are-not-purged.diff (0.7 kB) - added by Julien 2 years ago.
patch for the trunk

Change History

Changed 2 years ago by Julien

patch for the trunk

Changed 2 years ago by Julien

  • status changed from new to assigned

Changed 2 years ago by laurentj

  • review changed from review? to review+
  • milestone set to Jelix 1.0.5

ok.

Changed 2 years ago by Julien

  • status changed from assigned to closed
  • resolution set to fixed

landed in the trunk and 1.0.x branch

Note: See TracTickets for help on using tickets.