If I try to access the cookie from another sub directory it is working.
I think my problem has something to do with the fact that the page I am trying to access the cookie from is and included one.
ie I have an include file with all my common functions in it. I include this file in all of my php pages and try to call the show_cookie() function that I have written. The output is always blank for some reason.
I hope this is clear enough for everyone else to understand.