Stephen Brannan - 286 - Mar 29, 2014

What’s the best way to handle re-encoding cookies? I’m noticing SignalR is doing a UrlDecode on the cookies it receives (i.e. turns bLLP1rfdv+6+CVCBBRIN into bLLP1rfdv 6 CVCBBRIN). Because of this the session can no longer be found in ICacheClient. Right now I’m doing a Replace(" ", “+”) but this seems hackish. I tried re-encoding using UrlEncode but then other symbols like a forward slash becomes encoded resulting in the same error. I realize this isn’t really a service stack error, but I thought there might be some ideas here.

Hi Stephen, what version of SS are you using because in v4.0.12: https://github.com/ServiceStack/ServiceStack/wiki/Release-Notes#minor-features
ServiceStack no longer creates sessionIds with url unfriendly chars (i.e. ‘+’,’/’) so shouldn’t have this isssue.

Stephen Brannan:

Ah hah that’s… I’m on 4.0.11. Thanks I’ll upgrade to the latest. As always your the Na na na na na na na na na na na na na na na na… BATMAN! 

Na na na na na na na na na na na na na na na na… BATMAN!

Scott McArthur:

^ You just reminded me of this … Batman Dog