[Phplib-users] own session_name gc
Brought to you by:
nhruby,
richardarcher
From: Giancarlo <gia...@na...> - 2002-10-08 00:38:11
|
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 |