Jon12345 Posted December 13, 2006 Share Posted December 13, 2006 I have a page that sets a cookie as follows:[code]<?setcookie("user",$user,time()+100000000000);?> [/code]But if a cookie is already set, I want to change the value of user to something else.How can I do that? Should I delete it and write it again? Or can I somehow just change the cookies user variable?Thanks,Jon Link to comment https://forums.phpfreaks.com/topic/30501-deleting-a-cookie/ Share on other sites More sharing options...
michaellunsford Posted December 13, 2006 Share Posted December 13, 2006 if you set the cookie again, it should overwrite the previous value. Link to comment https://forums.phpfreaks.com/topic/30501-deleting-a-cookie/#findComment-140439 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.