When logout.php page is executed, Peter wants to destroy the cookie "uname". Choose the appropriate code which logout.php should contain:

<?php
setcookie("uname","");
?>

 

<?php
setcookie("uname","",time()-60);
?>

 

<?php
setcookie("uname",time()-60);
?>

 

<?php
setcookie("",time()-60);
?>

 

Verified Answer
Correct Option - b

To get all Infosys Certified PHP Associate Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee

Telegram