I see the use of the following code snippet:
$cookieexpiry=(time()+21600);
setcookie("rwphp","$cookieid",$cookieexpiry,"/",$_SERVER["HTTP_HOST"],0);
unset($cookieexpiry);
Q1> My question is whether it is really good practice to cancel $ cookieexpiry.
Q2> In general cases, when should I disable variables?
thank
q0987 source
share