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

Which variable declarations within a class is invalid in php?

0 Answers  


What is php ci?

0 Answers  


What is url encoding and decoding in php?

0 Answers  


How can we pass the variable through the navigation between the pages?

0 Answers  


write a program to generate bill screen 1.1st page should get the number of products to be billed. 2.2nd page should display the number of rows according to the number of products given in the first page. 3.Each row should have a text box for a.product name b.quantity c.unit price d.item price = quantity x unit price This should be automatically calculated not to be entered by the user. 4.After entering the products calculate sales-tax for the total amount which 8.25%. 5.After entering these values you have to generate the bill in the next page with a unique number for the bill. can anyone solve this problem..i am in need to solve this problem..pls help me

1 Answers   Yahoo,






How to randomly retrieve a value from an array?

0 Answers  


What is the difference between $message and $$message?

12 Answers   BSPL, eGrove, i-Net Solution,


What is return value in php?

0 Answers  


Is php used anymore?

0 Answers  


What is mem_cache ? How do you put a database query into that ?

5 Answers   NIIT,


How can we find the number of rows in a result set using PHP?

4 Answers  


How can I display text with a php script?

0 Answers  


Categories