$HTTP_COOKIE_VARS question
Posted: Thu Jun 16, 2005 9:10 am
Hi,
I have a line of code in my program as follows:
$username = $HTTP_COOKIE_VARS["myusername"];
From time to time, it fails to return a value.
Can anyone tell me how I can avoid this?
I tried to change the code as follows but still the same:
$username = $_COOKIE["myusername"];
Your help will be greatly appreciated.
I have a line of code in my program as follows:
$username = $HTTP_COOKIE_VARS["myusername"];
From time to time, it fails to return a value.
Can anyone tell me how I can avoid this?
I tried to change the code as follows but still the same:
$username = $_COOKIE["myusername"];
Your help will be greatly appreciated.