Copy an object into another object as value
Posted: Thu Feb 07, 2008 12:49 pm
How can one copy the session object ($_SESSION) into another object as value and not as reference? The following code snippet always does the copying as reference only:
$TEMPSESSION = $_SESSION;
So changes occur in the $_SESSION reflect in the $TEMPSESSION too; which should not happen in my case.
Please let me know how to resolve this issue!!!
$TEMPSESSION = $_SESSION;
So changes occur in the $_SESSION reflect in the $TEMPSESSION too; which should not happen in my case.
Please let me know how to resolve this issue!!!