protected function store_token($token) {
        global $SESSION;

        $this->accesstoken = $token;
        $name = $this->get_tokenname();

        if ($token !== null) {
            $SESSION->{$name} = $token;
        } else {
            unset($SESSION->{$name});
        }
    }
protected function store_token($token) {
        global $SESSION;

        $this->accesstoken = $token;
        $name = $this->get_tokenname();

        if ($token !== null) {
            $SESSION->{$name} = $token;
        } else {
            unset($SESSION->{$name});
        }
    }
protected function store_token ( $ token ) { global $ SESSION ; $ this -> accesstoken = $ token ; $ name = $ this -> get_tokenname ( ) ; if ( $ token !== null ) { $ SESSION -> { $ name } = $ token ; } else { unset ( $ SESSION -> { $ name } ) ; } }
Store a token between requests. Currently uses
session named by get_tokenname

@param stdClass|null $token token object to store or null to clear
Store a token between requests . Currently uses session named by get_tokenname