I'm having some issues with setcookie() not updating a cookie.
I have four links that each should change the value or set the value initially of a cookie called sort.
The first time I click a link, the script executes,
setcookie("sort","name_asc",time()+86400);
The value could be one of four things, name_asc, name_desc, filesize_asc and filesize_desc.
If I click the link for filesize_asc, it runs,
setcookie("sort","filesize_asc",time()+86400);
which should change the value of the cookie "sort", but it's not. Once the value gets set, PHP won't change it.
Any ideas on this one? Thanks for your help.