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 get best php developer Experience in Php with Sugar CRM / VTiger.

0 Answers  


how retrive the video file in php using video tag

0 Answers  


How many ways there are to fetch the data from the Database?

2 Answers   Tops Technologies,


hi,am a fresher in sap sd,will i try as a fresher or i wl go for with 2 to 3 yr exp,pls suggest me which web site is best for sap freshers.

0 Answers  


How to create reusable code in php?

0 Answers  






Is salary fixed or variable cost?

0 Answers  


Can we run php in apache tomcat?

0 Answers  


What is the value for this auto incremented field user_pri_id?

0 Answers  


What are escaping characters? Explain with an example?

0 Answers  


Why many companies are switching their current business language to php? Where php basically used?

0 Answers  


What is meant by ‘passing the variable by value and reference' in php?

0 Answers  


What is the difference between for and foreach in php?

0 Answers  


Categories