How To Set session.gc_divisor Properly

Q

How To Set session.gc_divisor Properly? - PHP Script Tips - Understanding and Using Sessions

✍: FYIcenter.com

A

As you know that session.gc_divisor is the frequency of when the session garbage collection process will be executed. You should set this value based on the income request traffic. Here are some suggestions:

# Set it to 10, if traffic is less than 10,000 per day:
session.gc_divisor = 10

# Set it to 100, if traffic is between 10,000 and 100,000 per day:
session.gc_divisor = 100

# Set it to 1000, if traffic is greater than 100,000 per day:
session.gc_divisor = 1000

2007-04-18, 7249👍, 0💬