Ticket #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: | 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
Change History
Note: See
TracTickets for help on using
tickets.
