You can delete a cookie by using the session.rem_cookie() function.
You cannot delete a cookie from a client computer.
You can delete a cookie by using the delcookie() function.
You have to set the session.gc_maxlifetime INI setting in the php.ini file.
<?phpsetcookie("user", "", time()-3600);?>
<?php setcookie("user", "Jason", time()+3600);?>
© 2013 Zend PHP Certification Exam