Jump to content

delete all occurrences of $b in a php cookie


kalster

Recommended Posts

in the code below, $b could be any value. consider that many cookies have been created with the increment of $b. i need to delete all cookies of $b and regardless of the value.

 

setcookie("read" . $a . $b, '', time()-10000);

 

so when the code below is as follows...

 

setcookie("read" . 1 . 5, '', time()-10000);

setcookie("read" . 1 . 6, '', time()-10000);

 

...then i need to delete all occurrences of the cookies.

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.