Jump to content


Photo

Cookie Handling Class?


  • Please log in to reply
1 reply to this topic

#1 pbjorge12

pbjorge12
  • Members
  • Pip
  • Newbie
  • 9 posts

Posted 28 August 2006 - 01:00 AM

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?

Thanks

#2 hitman6003

hitman6003
  • Members
  • PipPipPip
  • Advanced Member
  • 1,807 posts

Posted 28 August 2006 - 01:10 AM

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/m...iables.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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users