R
R
Ruslan2014-04-14 16:24:59
PHP
Ruslan, 2014-04-14 16:24:59

How to parse PHP sessions from memcached in node.js?

Actually the question is in the title. (php stores sessions in memcached)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
demimurych, 2014-04-14
@demimurych

memcached is just a storage. Access to which can be obtained by any client with sufficient rights. Including node.
That is, to answer the question, you need to understand how and who saves sessions in php.
Then implement a similar algorithm in node and everything will be as it should.

D
Dunadan, 2014-04-14
@Dunadan

There is a php-unserialize module.
We patched it for one of the projects (it crashed on cyclic references in objects), brought it to the performance we needed (read objects from the session, did not try to write back). It seems to work :) But it should be understood that it does not read everything - it simply skips cyclic links.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question