Hi all, I have a question... so, I have an engine class which works with a session class. The engine class is not a session class, but it passes its reference to the session class.
So the question is, will this reference be valid the next time I read the session class in (on another page (click)) ??
Or How can I manage to automatically update this reference ?
code is like
class engine{
function main(){
if(!isset($SESSION[sessionHandler])){
$SESSION[sessionHandler]=new SessionHandler(&$this);
}else{
$_SESSION[sessionHandler].getEngine();
}
}
}
thanks for your opinions!
Khayll