in reply to Re: cookie retrieval problem
in thread cookie retrieval problem

don't listen to other people saying you can't read and set a cookie in one script

Who said that? I said you can't set and read a cookie in the same request. As far as I can tell, that remains true.