I've been using the PHP setcookie function lately. When I call the cookie to see if it's set or not, I either get 0 or 1. Was curious if I could store more than just binary in a cookie, and if so, how?
What, exactly, are you doing with setcookie?
Let's say I want to set the cookie $_COOKIE['XYZ'] = 'Hey, Hello!'. (Curious if that's even possible)
setcookie('XYZ', 0, $expiration);
Currently, I only know how to set the cookie name, XYZ, along with an expiration date.
It's a general question, not directed towards a specific SMF process.
I think I just answered my own question. Once the cookie is made, set it to whatever
$_COOKIE['XYZ'] = 'Hey, Hello!'
Ha
The reason you get 0 back is because that's what you're telling PHP to set as the cookie in the first place...
setcookie('XYZ', 'Hey, Hello!', $expiration);
Reference: http://php.net/setcookie
^^ thanks man!