Sorry for posting this twice i men to pu it here and not in general
Why can't i do this?
function foo() {
globa $mjUser;
$mjUser = &$_SESSION['mjUser'] = array();
};
i have tried it with $mjUser = $_SESSION['mjUser'] = array();
but the session variable is not updated
what i want to do is make it so that whenever i change $mjUser it changes $_SESSION['mjUser']
I thought i could do this my makein mjUser a refernce to $_SESSION['mjUser']