时间:2021-07-01 10:21:17 帮助过:25人阅读
session_set_save_handler(
array('className','open'),
array('className','close'),
array('className','read'),
array('className','write'),
array('className','destroy'),
array('className','gc'),
)
调用className类中的6个静态方法.className可以换对象就不用调用静态方法,但是用静态成员不用生成对象,性能更好.http://www.bkjia.com/PHPjc/323630.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/323630.htmlTechArticle这时,函数bool session_set_save_handler ( callback open, callback close, callback read, callback write, callback destroy, callback gc )就是提供给我们解决这个问题的方...