Likewise, not sure what the Q is, but this line is surely wrong:
setcookie('myCookie', 1, time()*7*365);
SB
setcookie('myCookie', 1, time() + (86400*365) );
This is if the idea is to add one year of life to the cookie.
The idea being
take the number of seconds up to now - time()
to that add +
the number of seconds in a a day - 86400
and multiply by - *
the number of days in a year - 365
Well when you refresh the page, it should show your cookie in there (alongside that one you showed us) when you visit a page after you have deleted it, it should not be there.
To focus in on this issue, create 3 different pages, 1,2,3.
1 sets the cookie
2 reads the cookie
3 deletes the cookie
All with var_dump() at the top of the page, also depending on your browser install some “developer tools” so you can see the content of any given cookie at any time.
Try this tutorial if you can make no headway, and listen, cookies can be a hard thing to grasp, I remember trying to dig them when I first encountered Javascript - took me flippin’ ages.
Once you get it it is easy to work out what you are doing wrong. (Having said that, be warned that localhost is not the same host as 127.0.0.1 and I have run into issues with IE not reading cookies set on localhost, 'twas years ago though)