I'm want to be able to view the ZfcUser sessions in the I/O server of Ratchet.
However, out of the box only Symphony 2 Sessions are supported with the SessionProvider of Ratchet.
And I seriously don't know what to do next to make this work.
--
- Either extend the ZfcUser to use the Symphony 2 Session.
- Make the SessionProvider of Ratchet work with the way ZfcUser handles his Sessions.
- Or a workaround were I save the sessions to a database and use a
SELECT
query on the I/O server? ( like this )
--
The way Ratchet uses the SessionProvider is like this:
use Ratchet\Session\SessionProvider;
use Symfony\Component\HttpFoundation\Session\Storage\Handler;
use Ratchet\App;
$memcache = new Memcache;
$memcache->connect('localhost', 11211);
$session = new SessionProvider(
new MyApp
, new Handler\MemcacheSessionHandler($memcache)
);
$server = new App('localhost');
$server->route('/sessDemo', $session);
$server->run();
Any ideas on how to go furter?