php sessionの有効期限について
phpinfo()のセッション項目
session 有効期限
; After this number of seconds, stored data will be seen as 'garbage' and ; cleaned up by the garbage collection process. session.gc_maxlifetime = 1440
1440秒保存されガベージコレクションの処理によって削除される。
; Defines the probability that the 'garbage collection' process is started ; on every session initialization. The probability is calculated by using ; gc_probability/gc_divisor. Where session.gc_probability is the numerator ; and gc_divisor is the denominator in the equation. Setting this value to 1 ; when the session.gc_divisor value is 100 will give you approximately a 1% chance ; the gc will run on any give request. session.gc_probability = 1 session.gc_divisor = 1000
ガベージコレクションはセッションスタートした時にgc_probability/gc_divisorの確立で起動する。
gc_probability = 1 で session.gc_divisor = 100 の場合1%の確率で削除される。
アクセスが多いページだとほぼ24分でセッション切れるよな・・・