Ok, so i followed the instructions on the Set_Cookie documentation.
To delete the cookie, I send it with the same values, except a null for the value:
setcookie('user_name','',(time()-2592000),'/','',0);
The expiry time is in the past per the documentation.
When I check the cookie, it is still there but it's value has changed to 'deleted'.
Well this is causing a problem for me when the user tries to log in again. The input value gets overwritten with 'deleted.'
If i go to the cookies in Firefox and delete the cookie manually it works fine, the user can re log in.
Does anyone have any suggestions here? I've gone thru just about every cookie post on here and not found a post that details my problem.
Thanks.