I have an application up and running. Users requested that after they log in they would stay logged when they come back later.
I know that I need somehow store session data on client side, cookies for example. I tried this https://stackoverflow.com/a/25618636/2440515 but it doesn't work. Neither this https://www.npmjs.com/package/socket.io-handshake
I have both Express and Socket.io in the latests versions.
My application authenticates using Socket.io, so I will need a way to update cookies from Socket.io callback. I spent last 4h searching and trying different solutions. Can someone give me a hint?
Thank you!