Jump to content

need to clean my Cookie!!


Monkuar
 Share

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
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 -

 

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...
Link to comment
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 -

 

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.

Link to comment
Share on other sites

This thread is more than a year old.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • 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.