Re: [PHP-DEV] PHP Cookie Class

2006-06-15 Thread M. Sokolewicz
Alexander Pak wrote: I think it's a great idea, maybe it sould be implemented the same way for sessions too? On 6/15/06, Jason Boudreault <[EMAIL PROTECTED]> 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

Re: [PHP-DEV] PHP Cookie Class

2006-06-15 Thread Alexander Pak
I think it's a great idea, maybe it sould be implemented the same way for sessions too? On 6/15/06, Jason Boudreault <[EMAIL PROTECTED]> 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 im

[PHP-DEV] PHP Cookie Class

2006-06-14 Thread Jason Boudreault
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 wa