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

Re: Cookies problem

From: Mukul Gandhi <mgandhi@bhartitelesoft.com>
Date: Thu, 17 Feb 2000 17:41:58 +0500
Message-Id: <3.0.1.32.20000217174158.0069436c@202.56.229.147>
To: Igor Clark <igor@forefrontconsulting.co.uk>
Cc: 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
Received on Thursday, 17 February 2000 07:15:21 GMT

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