Hi!
If I setcookie like this:
setcookie ("name", $name );
setcookie ("email", $email );
setcookie ("tel", $tel );
No problem, it will write a cookie as I want and delete the cookie when the browser closed.
If I setcookie like this:
setcookie ("name", $name ,$time );
setcookie ("email", $email ,$time );
setcookie ("tel", $tel ,$time );
It will store the cookie even user close the browser, but I found once it store the value into the cookie, if I changed the value, it will not write into the cookie and update the value, why ?
Should I use if (isset ($cookie)) check if there is a cookie , true, destory it before setcookie ?
Can anyone help me, I must mis-understanding the whole concept.