Jump to content


This topic is now archived and is closed to further replies.


Cookie Handling Class?

Recommended Posts

Can anyone recommend me an AWESOME cookie handling class for PHP 4?
Some features that'd be nice...
1. Set, Get, and delete cookies
2. Multiple cookies in one cookie (I think its called serialization)

Or should I learn how to use sessions or find a session class instead of cookies?


Share this post

Link to post
Share on other sites
You don't need a class for this...in fact, you only need a couple of commands....

http://www.php.net/setcookie to set your cookie
http://us3.php.net/manual/en/reserved.variables.php#reserved.variables.cookies  for information about getting info from the cookie
http://www.php.net/serialize and http://www.php.net/unserialize for storing arrays in your cookie.

That's pretty much it.

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.