note 78767 deleted from function.session-set-save-handler by danbrown

From: Date: Sun, 23 Jan 2011 16:15:44 +0000
Subject: note 78767 deleted from function.session-set-save-handler by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-176033@lists.php.net to get a copy of this message
Note Submitter: rsumibcay at reddoor dot biz ---- In the below example posted by "shaun at shaunfreeman dot co dot uk". You shouldn't call gc() within the close() method. This would undermine PHP's ability to call gc() based on session.gc_probability and session.gc_divisor. Not to mention an expensive database hit if you are calling gc() on every request. This can become more problematic for load balanced servers talking to a single database server. And even more expensive if the database is setup to replicate your data for failover.

« previous php.notes (#176033) next »