Help! Cookies...

From: Date: Thu, 15 Mar 2001 00:02:06 +0000
Subject: Help! Cookies...
Groups: php.general 
Request: Send a blank email to php-general+get-43928@lists.php.net to get a copy of this message
I am frustrated with cookies, and the whole array aspect of them. I have looked at sample code on php.net, but it keeps bombing. Here are my questions: #1 When passing an array to the cookie, is the array one dimensional or 2 ? In other words when the value is stored in the cookie does it look like this: cookie_name, value1_of_array, value2_of_array, rest of cookie info or cookie_name,name_of_val1= value1_of_array, name_of_val1= value2_of_array, rest of cookie info if the first, then do I basically have to query the cookie name for array position in order to check the value stored there, like echo $cookie_name[1] of could I just echo $name resulting in value1_of_array ? Finally if I didn't confuse you...does anyone have a GOOD example of the proper way to put & get the cookies in an array format ? THANKS! ___________________________________________________________ Jack Sasportas

« previous php.general (#43928) next »