Re: array in cookie . . .

From: Date: Mon, 26 Mar 2001 09:44:17 +0000
Subject: Re: array in cookie . . .
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-45595@lists.php.net to get a copy of this message
On Monday 26 March 2001 05:15, you wrote: > Im trying to get an array saved in a cookie, I have this snippet so > far.. > > <? > if (newuser == yes) { > $user_reg[0]= $username; > $user_reg[1]= $password; > $user_reg[2]= $fullname; > $user_reg[3]= $email; > $user_reg[4]= $age; > setcookie ("user_reg" , $user_reg, time() + 360 * 86400); Almost forgot it: do *not* store passwords and personal info in a cookie. Store it in the database with some unique ID as key and transmit only this ID. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Google results 1-10 of about 142,000,000 for e. Search took 0.18 seconds. - http://www.google.com/search?q=e

« previous php.general (#45595) next »