...
http://perishablepress.com/press/2008/01/14/advanced-php-error-handling-via-htaccess/
Sessionök élettartama
session.gc_maxlifetime specifies the number of seconds after which data will be seen as 'garbage' and potentially cleaned up. Garbage collection may occur during session start (depending on session.gc_probability and session.gc_divisor).Jelenleg a phpinfo azt mondja, hogy:
session.gc_divisor | 1000 | 1000 |
session.gc_maxlifetime | 1440 | 1440 |
session.gc_probability | 0 | 0 |
Azaz ini_set('session.gc_maxlifetime', 24*60*60); kéne hogy legyen ha egy napos sessionokat akarunk. Az 86400 az 1440 helyett.
session.gc_probability in conjunction with session.gc_divisor is used to manage probability that the gc (garbage collection) routine is started. Defaults to 1. See session.gc_divisor for details.
session.gc_divisor coupled with session.gc_probability defines the probability that the gc (garbage collection) process is started on every session initialization. The probability is calculated by using gc_probability/gc_divisor, e.g. 1/100 means there is a 1% chance that the GC process starts on each request. session.gc_divisor defaults to 100.
...