SHARE
TWEET

Untitled

a guest Jul 31st, 2014 216 Never
  1. var sessions = new memcached("localhost:11211");
  2.  
  3. sessions.on('failure', function(details) {
  4.     console.log("Error while connecting to PHP sessions manager. error: " + details);
  5.     return -1;
  6. });
  7.  
  8. sessions.get(Manager.clients[socket.id].PHPSESSID, function(err, data) {
  9.    console.log(err, data);
  10. }
RAW Paste Data
Top