session - How to use $this->methodname in PHP session_set_save_handle? -
i have session class has on_session_write, on_session_read etc. methods inside class. in constructor function have initiate
session_set_save_handler("on_session_start", "on_session_end", "on_session_read", "on_session_write", "on_session_destroy", "on_session_gc");
and session_start() within problem methods need called using $this-> because within class. how accomplish this?
it's simple:
array($this,'methodname');
that's callback method.
array('classname','methodname');
that's callback static method.
Comments
Post a Comment