How can we destroy the cookie?

Answers were Sorted based on User's Feedback



How can we destroy the cookie?..

Answer / thoms

By providing past values.
for eg:
setcookie("name","value",time()-3600);

Is This Answer Correct ?    37 Yes 6 No

How can we destroy the cookie?..

Answer / rakesh kumar nautiyal

cookie.expires = Now()-1

Is This Answer Correct ?    33 Yes 15 No

How can we destroy the cookie?..

Answer / nikunj

By setting previous time for cookie, we can destroy it.

Is This Answer Correct ?    16 Yes 6 No

How can we destroy the cookie?..

Answer / dat

set the cookie in the past

Is This Answer Correct ?    4 Yes 6 No

Post New Answer

More PHP Interview Questions

How to remove duplicate values from php array?

0 Answers  


how to get the value in script values

1 Answers  


What is php and why we use it?

0 Answers  


what will do ceil() and floor() in PHP?

5 Answers  


•How to upload files using PHP?

3 Answers  






Can I use node js with php?

0 Answers  


What is the use of mvc in php?

0 Answers  


Why php was called as personal home page?

0 Answers  


Suppose your zend engine supports the mode <? ?> Then how can you configure your php zend engine to support <?php ?> Mode ?

0 Answers  


What are the steps for the payment gateway processing?

0 Answers  


What type of operation is needed when passing values through a form or an url?

0 Answers  


What is the difference between characters 34 and x34?

0 Answers  


Categories