0

I have a cookie set by C#.NET which I am reading in PHP.

Cookie name is MyCookie.

When I use echo $_COOKIE['MyCookie'];, it is printing cookie and replacing + with space.

The output is:

n9JO1tpWznyWF5VQ/Oh4oFjJC9bJ4GFa4Onk4Av 8jcsc CtCFvsHQdDHiU0F1BE

It should be

n9JO1tpWznyWF5VQ/Oh4oFjJC9bJ4GFa4Onk4Av+8jcsc+CtCFvsHQdDHiU0F1BE

I am not able to understand why that is the case and how to fix it. Because I need to decrypt this string first with AES algorithm. The decryption won't work as + is replaced with space.

dang
  • 2,342
  • 5
  • 44
  • 91

0 Answers0