PHP Cookies
Posted: Tue Mar 16, 2010 11:01 am
<?php $check=setcookie('cookie_test', 'please_accept_for_session1');
echo $HTTP_COOKIE_VARS['cookie_test'];
?>
Now, when I change the value of 'cookie_test', and refresh the browser page, it does not reflect the first time. It only reflects after a second fresh.
Any reasons ?
echo $HTTP_COOKIE_VARS['cookie_test'];
?>
Now, when I change the value of 'cookie_test', and refresh the browser page, it does not reflect the first time. It only reflects after a second fresh.
Any reasons ?