cookies we can read them from super global $_COOKIE <?php $name = "test"; $value = 45; $expire = time() + (60*60); // add seconds setcookie($name, $value, $expire); echo $_COOKIE[$name]; Note the cookie value persists even if you now remove the setcookie function <?php $name = "test"; echo $_COOKIE[$name]; Remember even cookies can be unset, it is good to first validate existence of a cookie before using it. 10