Ticket #645 (closed bug: fixed)

Opened 2 months ago

Last modified 2 months ago

jSession : old sessions are not purged with some PHP configurations

Reported by: Julien Assigned to: 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:
Documentation needed: 0 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 on 07/09/08 15:51:54.
patch for the trunk

Change History

07/09/08 15:51:54 changed by Julien

  • attachment 645-jSession-old-sessions-are-not-purged.diff added.

patch for the trunk

07/09/08 15:53:10 changed by Julien

  • status changed from new to assigned.

07/09/08 15:55:29 changed by laurentj

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

ok.

07/09/08 16:37:42 changed by Julien

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

landed in the trunk and 1.0.x branch

Download in other formats: Comma-delimited Text Tab-delimited Text RSS Feed