Your Ad Here
0

How to reset/destroy a cookie?

Posted by The Blogger on 12:41 PM in
Answer:

Reset a cookie by specifying expire time in the past:
Example: setcookie(’Test’,$i,time()-3600); // already expired time

Reset a cookie by specifying its name only
Example: setcookie(’Test’);


tags: php interview questions and answers, php interview question How to reset/destroy a cookie, How to reset/destroy a cookie, destroy cookie in php

0 Comments

Post a Comment

Your Ad Here

Copyright © 2009 Interview Questions and Answers