B
B
batya152014-08-13 20:44:53
HTTP Cookies
batya15, 2014-08-13 20:44:53

How to send new Cookies over socketio?

I use socketio to connect to the server
1. Load the markup and scripts
2. Add a new value to cookies with JavaScrip
3. Make a socketio connection

socket = io.connect(global.host + '/' + namespace, global.socket_cfg);
socket.on('connect', function () {});

On the server, I don't get the new value added by JavaScrip(2), but only the old ones that were there when the page was requested(1).
Is it possible to send new Cookies (dynamically added) on the socket without reloading the page

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question