πŸ“Š PHP
Q. Which function is used to delete a cookie in PHP?
  • (A) unset_cookie()
  • (B) delete_cookie()
  • (C) setcookie() with past expiry
  • (D) remove_cookie()
πŸ’¬ Discuss
βœ… Correct Answer: (C) setcookie() with past expiry

Explanation: Cookies are deleted by setting their expiration date to a past time using setcookie().

Explanation by: Rati Dubey
Cookies are deleted by setting their expiration date to a past time using setcookie().

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
50
Total Visits
πŸ“½οΈ
7 mo ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
89%
Success Rate