View Single Post
Old 02-19-2008, 11:13 AM   #2 (permalink)
ReSpawN
The Frequenter
 
ReSpawN's Avatar
 
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
ReSpawN is on a distinguished road
Default

Well, the only good ways to encode a string, is first to put it in an array. Then you can serialise() it and then write it into the cookie, which can be decoded with unserialise(). If you prefer NOT to use an array but a string, you should first urlencode() it and then base64_encode(). Both can decoded again with their opposite functions called urldecode() and base64_decode().

I hope this helps you out.
__________________
"Life is a bitch, take that bitch on a ride"
Send a message via MSN to ReSpawN
ReSpawN is offline  
Reply With Quote