Jump to content

Deleting a cookie


Jon12345

Recommended Posts

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

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.