own session_name gc

From: Date: Tue, 08 Oct 2002 00:32:27 +0000
Subject: own session_name gc
Groups: php.general 
Request: Send a blank email to php-general+get-119171@lists.php.net to get a copy of this message
The manual gives an example: function destroy ($id) { global $sess_save_path, $sess_session_name; $sess_file = "$sess_save_path/sess_$id"; return(@unlink($sess_file)); } /********************************************* * WARNING - You will need to implement some * * sort of garbage collection routine here. * *********************************************/ function gc ($maxlifetime) { return true; } But the function_destry is passed a var, $sess_session_name, that does affect noting. Suppose some baldous guy installs a multiuser game that he wants to reset all the sessions, will he block everything for everyone, forcing logoffs etc, unadvetedly? Or, put on anoter way: a savy designer that would like to neatly gc only his session_name()'s recs, how could he? Or is he aware that without an own save path that will cause damage? Or how else not? Gian

« previous php.general (#119171) next »