Jump to content

need to clean my Cookie!!


Monkuar

Recommended Posts

My code here

 

  setcookie('hide_div', $_COOKIE['hide_div'].','.$_GET['hide'],time()+32000000);

 

When I set it, it works wonderful, but then when I see view it in my cookie it shows this code between my $_GET['hide'] values

 

%2C

 

how do I clean it up and just make it show my " , "?

 

Thank you

Link to comment
https://forums.phpfreaks.com/topic/253045-need-to-clean-my-cookie/
Share on other sites

Where are you looking at to see the %2C value, because it should be decoded for you when php populates the $_COOKIE variable -

 

  Quote
Note that the value portion of the cookie will automatically be urlencoded when you send the cookie, and when it is received, it is automatically decoded...
  Quote

Where are you looking at to see the %2C value, because it should be decoded for you when php populates the $_COOKIE variable -

 

  Quote
Note that the value portion of the cookie will automatically be urlencoded when you send the cookie, and when it is received, it is automatically decoded...

 

 

2pk.png

 

I clicked it 3 times, so it ad's my $_GET['hide'] 3 times, which should be 3,3,3? No idea why it's not working

 

Other websites, it is shown 3,3,3 too. why Can't I get mine like that? Easier to explode.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.