UNSET THE COOKIE
Previous example we have already learn how to set the cookie variable and for unset the cookie value we need to do some change in the previous example.
As you can see that we have set the expire time 1000 second, but if we want to break/unset the value before 1000 second than, there is no PHP function for unset the cookie variable. To unset the cookie variable value you need use the same function as we have used to set, that means set the cookie value again for unset. Check it out the line of code I have specified below.


No comments:
Post a Comment