Sorry I guess I didn't look hard enough before I asked, but to do it you need to make the var global..like this:
function var_set($varname, $value)
{
global $$varname;
$$varname = $value;
session_register($varname);
}
function var_get($varname)
{
global $HTTP_SESSION_VARS;
return $HTTP_SESSION_VARS[$varname];
}
Just seems like an easier way to deal with vars to me, if I helped anyone else out you're welcome.
~Harlan