To delete a cookie in PHP, you can use the setcookie() function with an expiration date in the ______.
- past
- future
- present
- distant
To delete a cookie in PHP, you can use the setcookie() function and set the expiration date in the past. This causes the browser to discard the cookie, effectively deleting it. Additional information: http://php.net/manual/en/function.setcookie.php
Loading...
Related Quiz
- Imagine you are tasked with developing a dynamic website that interacts with a database. Would PHP be a suitable choice for this task? Why or why not?
- You have a PHP script and you need to decode a JSON object into a PHP array. How would you do this?
- You are tasked with creating a PHP function that accepts a filename, opens the file, prints its contents, and then closes the file. How would you approach this task?
- Which cryptographic extension provides generation and verification of digital signatures?
- Which of the following are valid ways to denote a comment in PHP?