$client = new Google_Client(); $client->setState('123456789');
$client = new Google_Client(); $state = $_SESSION['state']; $client->setState($state);This example sets the state of the Google_Client object as the value of the 'state' variable retrieved from the session. Package library: The Google_Client is part of the Google APIs Client Library for PHP.