Ticket #645 (closed bug: fixed)

Opened 20 months ago

Last modified 20 months 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 20 months ago.
patch for the trunk

Change History

Changed 20 months ago by Julien

patch for the trunk

Changed 20 months ago by Julien

  • status changed from new to assigned

Changed 20 months ago by laurentj

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

ok.

Changed 20 months 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.