Datastore/src/DatastoreSessionHandler.php
public function destroy($id)
    {
        try {
            $key = $this->datastore->key(
                $this->kind,
                $id,
                ['namespaceId' => $this->namespaceId]
            );
            $this->transaction->delete($key);
            $this->transaction->commit();
        } catch (Exception $e) {
            trigger_error(
                sprintf('Datastore delete failed: %s', $e->getMessage()),
                E_USER_WARNING
            );
            return false;
        }
        return true;
    }
public function destroy($id)
    {
        try {
            $key = $this->datastore->key(
                $this->kind,
                $id,
                ['namespaceId' => $this->namespaceId]
            );
            $this->transaction->delete($key);
            $this->transaction->commit();
        } catch (Exception $e) {
            trigger_error(
                sprintf('Datastore delete failed: %s', $e->getMessage()),
                E_USER_WARNING
            );
            return false;
        }
        return true;
    }
public function destroy ( $ id ) { try { $ key = $ this -> datastore -> key ( $ this -> kind , $ id , [ 'namespaceId' => $ this -> namespaceId ] ) ; $ this -> transaction -> delete ( $ key ) ; $ this -> transaction -> commit ( ) ; } catch ( Exception $ e ) { trigger_error ( sprintf ( 'Datastore delete failed: %s' , $ e -> getMessage ( ) ) , E_USER_WARNING ) ; return false ; } return true ; }
Delete the session data from Cloud Datastore.
Delete the session data from Cloud Datastore .