Hey everyone,
If you use the Set-Cookie http header in a header() call, how do you delete that cookie using the same method before it expires?
For instance, if I use:
header("Set-Cookie: username=$username; expires=time()+86400")
I would think that this would delete it:
header("Set-Cookie: username=$username; expires=time()-3600), but it doesn't do anything to the cookie.
Any thoughts?
Thanks in advance!
Ken