changed the way session variables are registered, using SESSION superglobal instead of the obsolete session_register
some links updated