[11488] in www-talk@info.cern.ch

home help back first fref pref prev next nref lref last post

Re: Cookies problem

daemon@ATHENA.MIT.EDU (Igor Clark)
Thu Feb 17 05:13:24 2000

Date: Thu, 17 Feb 2000 04:06:59 -0500 (EST)
Old-X-Envelope-From: www-talk-request@tux.w3.org  Thu Feb 17 04:06:57 2000
From: Igor Clark <igor@forefrontconsulting.co.uk>
To: Mukul Gandhi <mgandhi@bhartitelesoft.com>
Cc: www-talk@w3.org
In-Reply-To: <3.0.1.32.20000217131031.00733a2c@202.56.229.147>
Message-Id: <Pine.WNT.4.21.0001170906310.-536439@igor.clark.pixelpark.co.uk>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Old-X-Envelope-To: www-talk
Resent-From: gerald@w3.org
Resent-To: www-talk@w3.org

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
> 
> 


home help back first fref pref prev next nref lref last post