NYCPHP Meetup

NYPHP.org

[nycphp-talk] deleting cookies

Peter Sawczynec ps at sun-code.com
Tue Jan 29 08:45:26 EST 2008


You should take a look at php.net setcookie remarks from users. There
are other unusual caveats both for Firefox (doesn't like blank/empty
string value in setcookie func) and IE (7?) has issues with how a
setcookie time is set in the past. There are apparently one or two
tricks for expiring a cookie with a bole an value rather than past date,
maybe. Meanwhile, are you sure have named your cookie intended to be
expired correctly? Is there an issue/difference in double quotes vs
single quotes in setcookie func? If you are hiding PHP errors then are u
sure that you expire cookie effort is in a valid area of the output and
that there is not somewhere in front of the expire call some output
already? 

Peter

 

-----Original Message-----
From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]
On Behalf Of Michael Southwell
Sent: Tuesday, January 29, 2008 8:21 AM
To: NYPHP Talk
Subject: Re: [nycphp-talk] deleting cookies

Peter Sawczynec wrote:
> Try setting the cookie cancellation time to something more extreme
like:

This sounds promising; it is quite true that there is often a time 
disparity between the server (which may be geographically distant) and 
the client. But it still doesn't work.

> 
> setcookie( 'loginID', '', time() - 31536000 );
> 

-- 
=================
Michael Southwell
Vice President, Education
NYPHP TRAINING:  http://nyphp.com/Training/Indepth
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php




More information about the talk mailing list