Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jul 31st, 2014  |  syntax: None  |  size: 0.30 KB  |  views: 210  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }
clone this paste RAW Paste Data