Re: Re: session & cookies

From: Date: Fri, 27 Sep 2002 16:11:38 +0000
Subject: Re: Re: session & cookies
References: 1 2 3 4 5 6 7  Groups: php.general 
Request: Send a blank email to php-general+get-117867@lists.php.net to get a copy of this message
Chris and I have been working on this through private emails, and we (I mean he) finally figured out what the problem was... session.cookie_path was set to /tmp instead of /. I wanted to thank him for taking the time to help me work through this... Jeff "Chris Shiflett" <shiflett@php.net> wrote in message news:3D900414.2010101@php.net... > Jeff, > > One quick thought ... > > Is your cookie domain the same domain as the URL domain you are using to > test this? If not, the browser will not send the cookie, so that is a > potential reason for this behavior. > > If the domain is the same, I see no reason why this shouldn't work, but > I have two ideas you can try. > > 1. Rather than using the name of the cookie, try this on the receiving page: > > <pre> > <? > print_r($_COOKIE); > ?> > </pre> > > This should dump the entire array to the screen and would reveal any > naming problems. > > 2. View the HTTP transactions themselves to make sure the proper > Set-Cookie and Cookie headers are being used. There are several > utilities that can help do this, and I recently wrote one in PHP (it's a > quick hack though) you can get at http://protoscope.org/. The > messages > of interest are the original HTTP response from your Web server (which > should contain the Set-Cookie header) and any future HTTP request (which > should contain the Cookie header). This is the most reliable way to > really analyze these types of problems. > > Hopefully these ideas will help uncover something. > > Chris > > Jeff Bluemel wrote: > > >ok - no cookie exists... I have Netscape set to accept all cookies. > > >

« previous php.general (#117867) next »