I actually solved my own coding problem but don't understand how??
I'm writing a login script which sets a cookie. I have no problems setting the cookie and some of my pages can use HTTP_COOKIE_VARS without a problem but some of my pages had empty HTTP_COOKIE_VARS. I just figured out that the pages where I didn't have HTTP_COOKIE_VARS were pages which where accessed via the following HTML hyperlink code :
<a href ="http:/XXXXX.com/page.php> page.php </a>
instead of
<a href ="page.php> page.php </a>
which was used in the pages that did contain HTTP_COOKIE_VARS.
How does this make a difference?