SessionGet
The PHP function Session get returns a session variable. The second parameter
is a Standard Default Value and will be returned if the
Session variable Var_Name does not exist.
The framework itself tracks only 2 session variables. These are UID, which
is user_id, and PWD, which is user password. An application must be
careful not to overwrite those values, as the framework will make no
provision to prevent such an accident.
string $key key for the value to receive from $_SESSION
mixed $default default value for key
RETURN VALUE
mixed value associated with $key
function SessionGet($key,$default="",$sfx='app') {
$xkey=$GLOBALS["AG"]["application"]."_".$sfx."_".$key;
if (isset($_SESSION[$xkey])) {
return $_SESSION[$xkey];
}
else return $default;
}