Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24130 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29967 invoked by uid 1010); 15 Jun 2006 07:13:32 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 29945 invoked from network); 15 Jun 2006 07:13:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Jun 2006 07:13:31 -0000 X-PHP-List-Original-Sender: irokez@gmail.com X-Host-Fingerprint: 66.249.82.207 wx-out-0102.google.com Linux 2.4/2.6 Received: from ([66.249.82.207:34944] helo=wx-out-0102.google.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 81/30-00253-99801944 for ; Thu, 15 Jun 2006 03:13:31 -0400 Received: by wx-out-0102.google.com with SMTP id s14so256082wxc for ; Thu, 15 Jun 2006 00:13:24 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=P/FxeSQAzrGZsWh4zAIKgbTcX0QNPAjOKvNThttOAZy7pHZU1Lo+heyaZPoxOQk0nTc8KWWwvsTp4Cg5C6aghJltK1Qi37J8UEtk/5krt2FkkFt91BCUVHy3b3SXWf21d29c3KPPHcbxlXl0u9rYO9tWJoA9c+wYj/W0TyT2wpY= Received: by 10.70.8.15 with SMTP id 15mr1865405wxh; Thu, 15 Jun 2006 00:13:24 -0700 (PDT) Received: by 10.70.73.7 with HTTP; Thu, 15 Jun 2006 00:13:24 -0700 (PDT) Message-ID: Date: Thu, 15 Jun 2006 12:13:24 +0500 To: internals@lists.php.net, "Jason Boudreault" In-Reply-To: <002e01c69041$38912c70$0201a8c0@eidolon> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_46893_27888517.1150355604561" References: <002e01c69041$38912c70$0201a8c0@eidolon> Subject: Re: [PHP-DEV] PHP Cookie Class From: irokez@gmail.com ("Alexander Pak") ------=_Part_46893_27888517.1150355604561 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline I think it's a great idea, maybe it sould be implemented the same way for sessions too? On 6/15/06, Jason Boudreault wrote: > > 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 = new Cookie(); > if (!isset($cookie->username)) { > $cookie->username = "george"; > $cookie->save(); > } > > ^^ is nice, I was also thinking, there should be an option to auto-save > the cookies on __set :) > > -j > -- sincerely yours, Alexander Pak ------=_Part_46893_27888517.1150355604561--