Stephen, Thanks for the feedback.
There was no sign of the cookies in the variable list that the phpinfo provided. This is the code I am using: if (!isset($pid) || !isset($pwd)){ header("Location: default.php"); }else{ setcookie ("uid","$pid"); $query = "select * "; .... etc Now this doesn't dump me back into the default.php page so it is reading the $pid. I have tried attaching an expiry but it makes no difference. I have created a simple test process which consists of 3 basic php pages. The first contains a link which passes some 'GET' info to the next page. The second page sets a cookie using the 'GET' info and the third page displays the value of the cookie. I'm using PHP-4.0.6 an Register Globals is on so I just do $cookiename to read the cookie. Now the test process works fine. I've added the phpinfo(32) into page 3 and sure enough the cookie comes up on the list of variables. So why, oh why, isn't it working on my calendar site? Hoping someone knows the answer. Regards George > -----Original Message----- > From: Stephen Edmonds [mailto:[EMAIL PROTECTED]] > Sent: 17 December 2002 5:57 pm > To: PHP Helplist Windows > Cc: George Pitcher > Subject: Re: [PHP-WIN] Cookies working on test but not my application > > > Frames are not the issue here, any page in a frame still gets the cookie > providing it is in a domain for which the cookie is set. I > suggest making a > page with the following > > <? > phpinfo(32); > ?> > > That will output ALL the variable data for your page. If your cookie has > been sent back by the browser, then you should see it in that page. If you > don't, that means that the cookie has not been sent back to the browser. > This could be: > > 1) The cookie has expired. Check your temporary internet files for your > cookie, see if it is still there > > 2) The cookie has not been set to send data to your folder in the domain. > When calling set_cookie( ), it is generally best only to give the first 3 > arguments ( Variable Name, Variable Value, Expire time ). > > Good luck > > Stephen > > ----- Original Message ----- > From: "George Pitcher" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, December 17, 2002 4:29 PM > Subject: [PHP-WIN] Cookies working on test but not my application > > > > hi again, > > > > No response to my 2 earlier posts so here goes again. > > > > I have an authentication script which sets up a cookie, but it is not > being > > created. > > > > I have created some test pages on the same server (NT/IIS4) setting > cookies > > with variable values and they work fine. It's just that they > won't work in > > my Calendar site. > > > > Thinking it might be a 'frames' issue, I have put a test into > the Frameset > > holder to redirect if the cookie is not being read and sure enough it > dumps > > me out of the frameset. > > > > Does anyone have any suggestions? > > > > Please! > > > > MTIA > > > > George > > > > > > === > > > > George Pitcher > > HERON Technical Manager > > Ingenta plc > > 23-38 Hythe Bridge Street, Oxford, OX1 2ET > > T +44 (0)1865 799137 direct > > T +44 (0)1865 799000 switchboard > > F +44 (0)1865 799134 > > E [EMAIL PROTECTED] > > > > www.ingenta.com > > Ingenta: Empowering the exchange of academic and professional content > > online. > > > > > > -- > > PHP Windows Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php