Re: cvs: pearweb /public_html index.php

From: Date: Tue, 04 Sep 2001 00:09:24 +0000
Subject: Re: cvs: pearweb /public_html index.php
References: 1  Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-786@lists.php.net to get a copy of this message
["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? - Stig -- Stig Sæther Bakken <ssb@alltheweb.com> Fast Search & Transfer ASA, Trondheim, Norway

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