[11489] in www-talk@info.cern.ch
Re: Cookies problem
daemon@ATHENA.MIT.EDU (Mukul Gandhi)
Thu Feb 17 07:20:13 2000
Message-Id: <3.0.1.32.20000217174158.0069436c@202.56.229.147>
Date: Thu, 17 Feb 2000 17:41:58 +0500
To: Igor Clark <igor@forefrontconsulting.co.uk>
From: Mukul Gandhi <mgandhi@bhartitelesoft.com>
Cc: www-talk@w3.org
In-Reply-To: <Pine.WNT.4.21.0001170906310.-536439@igor.clark.pixelpark.c
o.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Resent-From: www-talk@w3.org
Thanks a lot! This has solved my problem.
regards
-mukul
At 09:07 AM 1/17/00 +0000, Igor Clark wrote:
>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