docs/examples/Server.php
protected function saveBrokerSessionData(string $brokerSessionId, string $sessionData)
    {
        /** This is basic example and you should do something better. */

        $cacheFile = fopen('broker_session_' . $brokerSessionId, 'w');
        fwrite($cacheFile, $sessionData);
        fclose($cacheFile);
    }
protected function saveBrokerSessionData(string $brokerSessionId, string $sessionData)
    {
        /** This is basic example and you should do something better. */

        $cacheFile = fopen('broker_session_' . $brokerSessionId, 'w');
        fwrite($cacheFile, $sessionData);
        fclose($cacheFile);
    }
protected function saveBrokerSessionData ( string $ brokerSessionId , string $ sessionData ) { /** This is basic example and you should do something better. */ $ cacheFile = fopen ( 'broker_session_' . $ brokerSessionId , 'w' ) ; fwrite ( $ cacheFile , $ sessionData ) ; fclose ( $ cacheFile ) ; }
Save broker session data to cache.

@param string $brokerSessionId
@param string $sessionData

@return void
Save broker session data to cache .