1.

How To Set Session.gc_maxlifetime Properly?

Answer»

As you know that session.gc_maxlifetime is the session value timeout period. You should SET this value based on the USAGE pattern of your visitors. Here are some suggestions:
# Set it to 20 minutes for a normal Web site:
session.gc_maxlifetime = 1200
# Set it to 24 hours if visitors comes to the site many time a DAY:
# EXAMPLE: Yahoo EMAIL site expires your session in 24 hours.
session.gc_maxlifetime = 86400

As you know that session.gc_maxlifetime is the session value timeout period. You should set this value based on the usage pattern of your visitors. Here are some suggestions:
# Set it to 20 minutes for a normal Web site:
session.gc_maxlifetime = 1200
# Set it to 24 hours if visitors comes to the site many time a day:
# Example: Yahoo email site expires your session in 24 hours.
session.gc_maxlifetime = 86400



Discussion

No Comment Found