PHP Cookie Class
| From: | Jason Boudreault | Date: | Thu, 15 Jun 2006 06:02:01 +0000 |
| Subject: | PHP Cookie Class | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-24129@lists.php.net to get a copy of this message | ||
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