I've seen a couple of questions regarding the
expiring of sessions in PHP. The way to control
how sessions expire is to set some options
in php.ini.
These options are of particular use:
session.gc_prob ability
session.gc_maxl ifetime
session.cache_e xpire
session.gc_prob ability is a percentage. 1 means 1%,
and 100 means 100%. If you want to ensure
that the gc (garbage collector) is run on every
activation of the session subsystem, set
gc_probability to 100:
session.gc_prob ability = 100
Of course, this will probably have performance
consequences. Followups to comp.lang.php.
expiring of sessions in PHP. The way to control
how sessions expire is to set some options
in php.ini.
These options are of particular use:
session.gc_prob ability
session.gc_maxl ifetime
session.cache_e xpire
session.gc_prob ability is a percentage. 1 means 1%,
and 100 means 100%. If you want to ensure
that the gc (garbage collector) is run on every
activation of the session subsystem, set
gc_probability to 100:
session.gc_prob ability = 100
Of course, this will probably have performance
consequences. Followups to comp.lang.php.