Re: cvs: pearweb /public_html index.php

From: Date: Tue, 04 Sep 2001 00:15:00 +0000
Subject: Re: cvs: pearweb /public_html index.php
References: 1 2  Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-787@lists.php.net to get a copy of this message
Stig Sæther Bakken wrote: > > ["Thomas V.V.Cox" <cox@idecnet.com>] > > cox Mon Sep 3 23:04:46 2001 EDT > > > > Modified files: > > /pearweb/public_html index.php > > Log: > > try to make work "undevme" > > > > > > Index: pearweb/public_html/index.php > > diff -u pearweb/public_html/index.php:1.21 pearweb/public_html/index.php:1.22 > > --- pearweb/public_html/index.php:1.21 Mon Sep 3 23:03:25 2001 > > +++ pearweb/public_html/index.php Mon Sep 3 23:04:46 2001 > > @@ -6,7 +6,7 @@ > > setcookie('pear_dev', 'on', time() + $duration, '/'); > > $HTTP_COOKIE_VARS['pear_dev'] = 'on'; > > } elseif ($HTTP_SERVER_VARS['QUERY_STRING'] == 'undevme') { > > - setcookie('pear_dev'); > > + setcookie('pear_dev', '', time() - 3600, '/'); > > unset($HTTP_COOKIE_VARS['pear_dev']); > > } > > Setcookie() without params is supposed to delete the cookie by setting > it to "delete". Doesn't it work for you? > Not for me in both Netscape/Mozilla [Linux]. With this fix it does work. Tomas V.V.Cox

« previous php.pear.cvs (#787) next »