public static function set($user_id, $userEmail, $context_id) {
        global $CFG;
        $ct = self::create($user_id,$userEmail, $context_id);
        setcookie($CFG->cookiename,$ct,time() + (86400 * 45), '/'); // 86400 = 1 day
    }