jeger003 Posted June 26, 2010 Share Posted June 26, 2010 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 More sharing options...
kenrbnsn Posted June 26, 2010 Share Posted June 26, 2010 The function setcookie will change the cookie's value and anything else. Ken Link to comment https://forums.phpfreaks.com/topic/205912-help-with-cookies-please/#findComment-1077500 Share on other sites More sharing options...
jeger003 Posted June 26, 2010 Author Share Posted June 26, 2010 oh your right! I was doing this before it was creating more than one cookie with "state". Thank You For the Help!!!!! Link to comment https://forums.phpfreaks.com/topic/205912-help-with-cookies-please/#findComment-1077502 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.