fkooman\OAuth\Client\SessionStorage::storeState PHP Метод

storeState() публичный Метод

public storeState ( State $state )
$state State
    public function storeState(State $state)
    {
        if (!isset($_SESSION['php-oauth-client']['state'])) {
            $_SESSION['php-oauth-client']['state'] = array();
        }
        array_push($_SESSION['php-oauth-client']['state'], serialize($state));
        return true;
    }