Friday 12 February 2016

Socket.io get cookie PHPSESSID

Hi, I got cookie PHPSESSID using socket.io but it replaces characters like +, /, : etc. to some strange strings like %2F or %3A. How can I get rid of them and change it to normal characters?Using socket.handshake.headers.cookie.PHPSESSID:s%3A.3Q7BQ9lo7S%2F4yehQ1Iun7yGaGYW3hImEEAwUhTN1eCYAnd normal:s:.3Q7BQ9lo7S/4yehQ1Iun7yGaGYW3hImEEAwUhTN1eCYI tried to do it with replace function but I think it isn't good way to do it.

Submitted February 12, 2016 at 11:05PM by Gurlox

No comments:

Post a Comment