Q. Which function is used to delete a cookie?

  • (A) setcookie() with past expiry
  • (B) unsetcookie()
  • (C) deletecookie()
  • (D) remove_cookie()
πŸ’¬ Discuss
βœ… Correct Answer: (A) setcookie() with past expiry
Explanation: Setting a cookie with an expiration time in the past deletes it.
Explanation by: Rati Dubey
Setting a cookie with an expiration time in the past deletes it.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
78
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
80%
Success Rate