By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,215 Members | 1,005 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,215 IT Pros & Developers. It's quick & easy.

expiring sessions

P: n/a
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_probability 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_probability = 100

Of course, this will probably have performance
consequences. Followups to comp.lang.php.

Jul 16 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.