Jump to content

help with cookies!!! PLEASE!!


jeger003

Recommended Posts

No, no, Im not looking for a recipe :)

 

I need help changing a cookie value that is already set..this is what I have

 



$get_s = $_GET['s'];

$expires = time() + 31536000;

//setcookie(state, $get_s, $expires); <-this is the code that sets the cookie

$_COOKIE['state'] = "changed"; //I found online that this code is supposed to change the value (doesnt change it)

Just need a way to change the value already set

 

I would really like some help with this

 

thank you guys

Link to comment
https://forums.phpfreaks.com/topic/205912-help-with-cookies-please/
Share on other sites

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.