qtype/ordering replace use of $_SESSION variable with Moodle's $SESSION array