I want to delete a cookie I set it to expired time setcookie ("blah", "", time() - 3600); but the cookies is still there how to delete a cookie?
Ask the user to clear the cookies. Setting a cookie to a negative time (or time previous to now) just renders it invalid. To delete the cookie, the user has to manually remove the text file.
Instead of wanting to delete the cookie why dont you just set the cookie to null or blank then do your checks on the cookie if its set to nothing then dont run your code or if its not set reset it etc.
use
setcookie('cookiename');
He's already doing that... notice the blank value of the cookie? He's also resetting the time so it's not even sent.