W3C home > Mailing lists > Public > www-talk@w3.org > January to February 2000

Re: Cookies problem

From: Igor Clark <igor@forefrontconsulting.co.uk>
Date: Thu, 17 Feb 2000 04:06:59 -0500 (EST)
To: Mukul Gandhi <mgandhi@bhartitelesoft.com>
cc: www-talk@w3.org
Message-ID: <Pine.WNT.4.21.0001170906310.-536439@igor.clark.pixelpark.co.uk>
Make sure the cookie 'path' attribute is set to a directory which includes
all the subdirectories you want to read it from - in the case of the
example you have given, you probably want 'path=/;'

bests
Igor

On Thu, 17 Feb 2000, Mukul Gandhi wrote:

> Hello All ,
> I am running a PHP script on the server with URL
> http://machine/dir1/script.php3 . This script is successfully setting
> cookie on the client. When I run another PHP script on the server with URL
> http://machine/dir2/cokkieread.php3 (this program is reading the cookie), I
> am unable to read the cookie. But when I place the same cookieread.php3
> program in dir1 , cookies are being read.
> I am setting cookie with default settings i.e Set-cookie: UID="mukul";  Why
> is this difference occuring due to directories? I am using PHP 3.0.12 on NT
> Workstation 4.0
> 
> regards
> -mukul
> 
> 
> --------------------------------------------------------------
> Bharti Cellular Limited, New Delhi, India
> 
> 
Received on Thursday, 17 February 2000 05:08:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 October 2010 18:14:24 GMT