developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 12 years ago

Closed 12 years ago

#645 closed bug (fixed)

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: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:

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 (1)

645-jSession-old-sessions-are-not-purged.diff (742 bytes) - added by Julien 12 years ago.
patch for the trunk

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by Julien

patch for the trunk

comment:1 Changed 12 years ago by Julien

  • Status changed from new to assigned

comment:2 Changed 12 years ago by laurentj

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

ok.

comment:3 Changed 12 years ago by Julien

  • Resolution set to fixed
  • Status changed from assigned to closed

landed in the trunk and 1.0.x branch

Note: See TracTickets for help on using tickets.