Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24129 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3207 invoked by uid 1010); 15 Jun 2006 06:45:06 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 3191 invoked from network); 15 Jun 2006 06:45:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Jun 2006 06:45:06 -0000 Received: from ([127.0.0.1:17657]) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with ECSTREAM id 5E/7B-00253-1F101944 for ; Thu, 15 Jun 2006 02:45:05 -0400 X-PHP-List-Original-Sender: jason@shaped.ca X-Host-Fingerprint: 66.36.231.240 unknown Linux 2.5 (sometimes 2.4) (4) Received: from ([66.36.231.240:34192] helo=mail.shaped.ca) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id A4/86-00253-5E7F0944 for ; Thu, 15 Jun 2006 02:02:13 -0400 Received: (qmail 23604 invoked by uid 534); 15 Jun 2006 00:04:43 -0700 Received: from s010600609735f30c.cg.shawcable.net (HELO eidolon) (jason@shaped.ca@70.72.65.65) by mail.shaped.ca with SMTP; 15 Jun 2006 00:04:43 -0700 Message-ID: <002e01c69041$38912c70$0201a8c0@eidolon> To: Date: Thu, 15 Jun 2006 00:02:01 -0600 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_002B_01C6900E.ED679BD0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Subject: PHP Cookie Class From: jason@shaped.ca ("Jason Boudreault") ------=_NextPart_000_002B_01C6900E.ED679BD0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable So, I found myself wondering today why PHP has no built in way to treat = cookies as objects. Why? I've already written my own class, but, we should implement this! $cookie =3D new Cookie(); if (!isset($cookie->username)) {=20 $cookie->username =3D "george"; $cookie->save(); } ^^ is nice, I was also thinking, there should be an option to auto-save = the cookies on __set :) -j ------=_NextPart_000_002B_01C6900E.ED679BD0--